summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-03-27 16:37:31 +0100
committerTannin <devnull@localhost>2015-03-27 16:37:31 +0100
commit8eb63a068ccae5dca755a5e6f0607ecacbddb4a2 (patch)
tree994963b562c2fc4c9614e89637a491efc57f5ff0 /src/organizercore.cpp
parent4d4a7713fb936f632dc655abd0196adada0784de (diff)
cleanup
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index c2eaeae7..fcd934ae 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -225,7 +225,7 @@ void OrganizerCore::storeSettings()
// make a second attempt using qt functions but if that fails print the error from the first attempt
if (!renameFile(iniFile + ".new", iniFile)) {
QMessageBox::critical(qApp->activeWindow(), tr("Failed to write settings"),
- tr("An error occured trying to write back MO settings: %1").arg(windowsErrorString(err)));
+ tr("An error occured trying to write back MO settings to %1: %2").arg(iniFile + ".new", windowsErrorString(err)));
}
}
} else {
@@ -233,7 +233,7 @@ void OrganizerCore::storeSettings()
: result == QSettings::FormatError ? tr("Invalid file format (probably a bug)")
: tr("Unknown error %1").arg(result);
QMessageBox::critical(qApp->activeWindow(), tr("Failed to write settings"),
- tr("An error occured trying to write back MO settings: %1").arg(reason));
+ tr("An error occured trying to write back MO settings to %1: %2").arg(iniFile + ".new", reason));
}
}
@@ -322,7 +322,6 @@ void OrganizerCore::setUserInterface(IUserInterface *userInterface, QWidget *wid
m_UserInterface = userInterface;
if (widget != nullptr) {
-// connect(&m_ModList, SIGNAL(modlist_changed(QModelIndex, int)), widget, SLOT(modorder_changed()));
connect(&m_ModList, SIGNAL(modlist_changed(QModelIndex, int)), widget, SLOT(modlistChanged(QModelIndex, int)));
connect(&m_ModList, SIGNAL(showMessage(QString)), widget, SLOT(showMessage(QString)));
connect(&m_ModList, SIGNAL(modRenamed(QString,QString)), widget, SLOT(modRenamed(QString,QString)));