diff options
| author | Tannin <devnull@localhost> | 2015-03-27 16:37:31 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-03-27 16:37:31 +0100 |
| commit | 8eb63a068ccae5dca755a5e6f0607ecacbddb4a2 (patch) | |
| tree | 994963b562c2fc4c9614e89637a491efc57f5ff0 /src | |
| parent | 4d4a7713fb936f632dc655abd0196adada0784de (diff) | |
cleanup
Diffstat (limited to 'src')
| -rw-r--r-- | src/organizercore.cpp | 5 | ||||
| -rw-r--r-- | src/organizercore.h | 6 |
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(); }
|
