diff options
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 81696a4c..65b3c795 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2211,7 +2211,10 @@ void MainWindow::storeSettings() result = settings.status(); } if (result == QSettings::NoError) { - shellRename(iniFile + ".new", iniFile, true, this); + if (!shellRename(iniFile + ".new", iniFile, true, this)) { + QMessageBox::critical(this, tr("Failed to write settings"), + tr("An error occured trying to write back MO settings: %1").arg(windowsErrorString(::GetLastError()))); + } } else { QString reason = result == QSettings::AccessError ? tr("File is write protected") : result == QSettings::FormatError ? tr("Invalid file format (probably a bug)") |
