From ea1f959ad592c1f10c5c60908e01c220aed206a5 Mon Sep 17 00:00:00 2001 From: Tannin Date: Thu, 1 May 2014 10:03:40 +0200 Subject: - 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) --- src/mainwindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mainwindow.cpp') 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)") -- cgit v1.3.1