diff options
| author | Tannin <devnull@localhost> | 2014-05-01 10:03:40 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-05-01 10:03:40 +0200 |
| commit | ea1f959ad592c1f10c5c60908e01c220aed206a5 (patch) | |
| tree | f5d9849a18c7e49107e5c7ecae8854f65dbb02c3 /src/mainwindow.cpp | |
| parent | 7cf3b3455b0988f7f857969b958a2de721d42273 (diff) | |
- download tooltip now also includes the file description
- will now display an error message when the ini file can't be updated (in addition to what windows says)
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)") |
