From 8eb63a068ccae5dca755a5e6f0607ecacbddb4a2 Mon Sep 17 00:00:00 2001 From: Tannin Date: Fri, 27 Mar 2015 16:37:31 +0100 Subject: cleanup --- src/organizercore.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/organizercore.cpp') 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))); -- cgit v1.3.1