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

Fix dir to user profile

fix #2183 (for portable mode)
This commit is contained in:
PKEv 2015-09-28 21:11:45 +03:00 committed by PKev
parent e1509a9f03
commit bd77a38e5d

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();
}