diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-02-18 18:15:35 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-18 18:15:35 -0500 |
| commit | d41d57fe07633cc1be70c666e91c7e571afdd28f (patch) | |
| tree | bc84402369d6a1920a7d21349de7233fe21b8531 /src/mainwindow.cpp | |
| parent | e749b2072601830c11495ce210907391dfe7bc6b (diff) | |
| parent | f9ad6d97098093b5d03e7792798583ea73a1ea65 (diff) | |
Merge pull request #1004 from isanae/timings
More timings
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 21a6fa41..325a7e93 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -962,6 +962,8 @@ void MainWindow::scheduleUpdateButton() void MainWindow::updateProblemsButton() { + TimeThis tt("MainWindow::updateProblemsButton()"); + // if the current stylesheet doesn't provide an icon, this is used instead const char* DefaultIconName = ":/MO/gui/warning"; @@ -1667,9 +1669,9 @@ void MainWindow::on_profileBox_currentIndexChanged(int index) // Avoid doing any refresh if currentProfile is already set but previous index was -1 // as it means that this is happening during initialization so everything has already been set. - if (previousIndex == -1 - && m_OrganizerCore.currentProfile() != nullptr - && m_OrganizerCore.currentProfile()->exists() + if (previousIndex == -1 + && m_OrganizerCore.currentProfile() != nullptr + && m_OrganizerCore.currentProfile()->exists() && ui->profileBox->currentText() == m_OrganizerCore.currentProfile()->name()){ return; } @@ -5517,7 +5519,7 @@ void MainWindow::nxmUpdatesAvailable(QString gameName, int modID, QVariant userD bool foundUpdate = false; bool oldFile = false; QString installedFile = mod->getInstallationFile(); - if (!installedFile.isEmpty()) { + if (!installedFile.isEmpty()) { QVariantMap foundFile; for (auto file : files) { QVariantMap fileData = file.toMap(); |
