diff options
| author | Tannin <devnull@localhost> | 2014-12-01 18:44:37 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-12-01 18:44:37 +0100 |
| commit | 226993eecee22e3cb39fc30aedfef587cc58330c (patch) | |
| tree | f62b12ff4f2db4fce2eae1dddd6781562c7ad5b1 /src/mainwindow.cpp | |
| parent | 78da5fc37ff3a488dc0db8704f2c93cef48dbb57 (diff) | |
- added error handling when a file can't be deleted from vfs
- minor bugfixes
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index d3c108fc..101c8f81 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -4334,7 +4334,7 @@ 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") { + if ((m_CurrentLanguage != "en-US") && (m_CurrentLanguage != "en_US")) { qWarning("localization file %s not found", qPrintable(fileName)); } // we don't actually expect localization files for english } @@ -5238,6 +5238,9 @@ void MainWindow::on_espList_customContextMenuRequested(const QPoint &pos) void MainWindow::on_groupCombo_currentIndexChanged(int index) { + if (m_ModListSortProxy == NULL) { + return; + } QAbstractProxyModel *newModel = NULL; switch (index) { case 1: { |
