summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-02-25 18:38:01 +0100
committerTannin <devnull@localhost>2015-02-25 18:38:01 +0100
commit6479f972dccaabb3afadb570583a4269e8a785e4 (patch)
treeb36ec1afc65e123b893215a2529bb20c25041adb /src/mainwindow.cpp
parente01ab940b0d76bfec8d7037ee56938780a74dc5b (diff)
tons of code cleanup and minor fixes to harden the code (mostly suggestions from static code analysis)
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 9e8d0c82..af654e2f 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -138,8 +138,6 @@ using namespace MOBase;
using namespace MOShared;
-
-
MainWindow::MainWindow(const QString &exeName
, QSettings &initSettings
, OrganizerCore &organizerCore
@@ -2172,7 +2170,6 @@ void MainWindow::removeMod_clicked()
QString mods;
QStringList modNames;
foreach (QModelIndex idx, selection->selectedRows()) {
-// QString name = ModInfo::getByIndex(m_ModListGroupProxy->mapToSource(idx).row())->name();
QString name = idx.data().toString();
if (!ModInfo::getByIndex(idx.data(Qt::UserRole + 1).toInt())->isRegular()) {
continue;
@@ -3363,7 +3360,9 @@ void MainWindow::installTranslator(const QString &name)
QTranslator *translator = new QTranslator(this);
QString fileName = name + "_" + m_CurrentLanguage;
if (!translator->load(fileName, qApp->applicationDirPath() + "/translations")) {
- if ((m_CurrentLanguage != "en-US") && (m_CurrentLanguage != "en_US")) {
+ if ((m_CurrentLanguage != "en-US")
+ && (m_CurrentLanguage != "en_US")
+ && (m_CurrentLanguage != "en-GB")) {
qDebug("localization file %s not found", qPrintable(fileName));
} // we don't actually expect localization files for english
}