summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/organizercore.cpp5
-rw-r--r--src/organizercore.h6
2 files changed, 5 insertions, 6 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)));
diff --git a/src/organizercore.h b/src/organizercore.h
index e4072b38..503bf3b9 100644
--- a/src/organizercore.h
+++ b/src/organizercore.h
@@ -85,13 +85,13 @@ public:
MOShared::DirectoryEntry *directoryStructure() { return m_DirectoryStructure; }
DirectoryRefresher *directoryRefresher() { return &m_DirectoryRefresher; }
ExecutablesList *executablesList() { return &m_ExecutablesList; }
- void setExecutablesDialog(const ExecutablesList &executablesList) { m_ExecutablesList = executablesList; }
+ void setExecutablesList(const ExecutablesList &executablesList) {
+ m_ExecutablesList = executablesList;
+ }
Profile *currentProfile() { return m_CurrentProfile; }
void setCurrentProfile(const QString &profileName);
- void setExecutablesList(const ExecutablesList &executablesList);
-
std::set<QString> enabledArchives();
MOBase::VersionInfo getVersion() const { return m_Updater.getVersion(); }