1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge remote-tracking branch 'PKEv/fix_2183_dir_to_Profile'

This commit is contained in:
agilob 2015-10-03 17:52:12 +01:00
commit a522624b2d
No known key found for this signature in database
GPG Key ID: 296F0B764741106C

View File

@ -153,10 +153,12 @@ void ProfileForm::show(ContentLayout* contentLayout)
head->show();
QWidget::show();
prFileLabelUpdate();
QString DirPath = QDir(Settings::getInstance().getSettingsDirPath()).path().trimmed();
QString DirPath = Settings::getInstance().getMakeToxPortable() ? QApplication::applicationDirPath() :
QDir(Settings::getInstance().getSettingsDirPath()).path().trimmed();
bodyUI->dirPrLink->setText(bodyUI->dirPrLink->text().replace("Dir_Path",DirPath));
bodyUI->dirPrLink->setOpenExternalLinks(true);
bodyUI->dirPrLink->setTextInteractionFlags(Qt::LinksAccessibleByMouse | Qt::TextSelectableByMouse);
bodyUI->dirPrLink->setMaximumSize(bodyUI->dirPrLink->sizeHint());
bodyUI->userName->setFocus();
bodyUI->userName->selectAll();
}