mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-02 16:20:23 +00:00
Use file selection dialogue result (bug #4524)
This commit is contained in:
parent
b7c159e5b6
commit
28a02ac93b
@ -43,7 +43,6 @@ void Launcher::AdvancedPage::on_runScriptAfterStartupBrowseButton_clicked()
|
|||||||
QDir::currentPath(),
|
QDir::currentPath(),
|
||||||
QString(tr("Text file (*.txt)")));
|
QString(tr("Text file (*.txt)")));
|
||||||
|
|
||||||
|
|
||||||
if (scriptFile.isEmpty())
|
if (scriptFile.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -53,7 +52,7 @@ void Launcher::AdvancedPage::on_runScriptAfterStartupBrowseButton_clicked()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
const QString path(QDir::toNativeSeparators(info.absoluteFilePath()));
|
const QString path(QDir::toNativeSeparators(info.absoluteFilePath()));
|
||||||
|
runScriptAfterStartupField->setText(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Launcher::AdvancedPage::loadSettings()
|
bool Launcher::AdvancedPage::loadSettings()
|
||||||
@ -168,4 +167,4 @@ void Launcher::AdvancedPage::saveSettingBool(QCheckBox *checkbox, const std::str
|
|||||||
void Launcher::AdvancedPage::slotLoadedCellsChanged(QStringList cellNames)
|
void Launcher::AdvancedPage::slotLoadedCellsChanged(QStringList cellNames)
|
||||||
{
|
{
|
||||||
loadCellsForAutocomplete(cellNames);
|
loadCellsForAutocomplete(cellNames);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user