From 58ec83f8c86784b7ea1bfcc67d575c91606beca8 Mon Sep 17 00:00:00 2001 From: Eran Mizrahi Date: Thu, 4 Jan 2018 20:53:24 +0200 Subject: Log the MO version for diagnostic purposes --- src/main.cpp | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index 4c5ac75c..3e02a4a7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -419,10 +419,28 @@ void setupPath() ::SetEnvironmentVariableW(L"PATH", newPath.c_str()); } +static QString getVersionDisplayString() +{ + VS_FIXEDFILEINFO version = GetFileVersion(ToWString(QApplication::applicationFilePath())); + return VersionInfo(version.dwFileVersionMS >> 16, + version.dwFileVersionMS & 0xFFFF, + version.dwFileVersionLS >> 16, + version.dwFileVersionLS & 0xFFFF).displayString(); +} + int runApplication(MOApplication &application, SingleInstance &instance, const QString &splashPath) { - qDebug("start main application"); + + qDebug("Starting Mod Organizer version %s revision %s", qPrintable(getVersionDisplayString()), +#if defined(HGID) + HGID +#elif defined(GITID) + GITID +#else + "unknown" +#endif + ); QString dataPath = application.property("dataPath").toString(); qDebug("data path: %s", qPrintable(dataPath)); -- cgit v1.3.1 From 14b06dd2e83129d35568aa36ae9b670da16f421c Mon Sep 17 00:00:00 2001 From: Eran Mizrahi Date: Thu, 4 Jan 2018 20:53:54 +0200 Subject: Don't auto scroll down the downloads list --- src/mainwindow.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ddc4fe23..2f3c40c7 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1682,8 +1682,6 @@ void MainWindow::on_tabWidget_currentChanged(int index) refreshDataTree(); } else if (index == 3) { refreshSaveList(); - } else if (index == 4) { - ui->downloadView->scrollToBottom(); } } -- cgit v1.3.1 From 785852cf2120f2643a0476b43600ab7ef5c07638 Mon Sep 17 00:00:00 2001 From: Eran Mizrahi Date: Thu, 4 Jan 2018 23:41:44 +0200 Subject: Don't auto scroll down the downloads list (even when a file was downloaded) --- src/mainwindow.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 2f3c40c7..11693568 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -331,8 +331,6 @@ MainWindow::MainWindow(QSettings &initSettings connect(m_OrganizerCore.directoryRefresher(), SIGNAL(progress(int)), this, SLOT(refresher_progress(int))); connect(m_OrganizerCore.directoryRefresher(), SIGNAL(error(QString)), this, SLOT(showError(QString))); - connect(m_OrganizerCore.downloadManager(), SIGNAL(downloadAdded()), ui->downloadView, SLOT(scrollToBottom())); - connect(&m_SavesWatcher, SIGNAL(directoryChanged(QString)), this, SLOT(refreshSavesIfOpen())); connect(&m_OrganizerCore.settings(), SIGNAL(languageChanged(QString)), this, SLOT(languageChange(QString))); -- cgit v1.3.1