From b6cfc82b4e384ea0495ebb80b3696cc1d6059267 Mon Sep 17 00:00:00 2001 From: Weslly Date: Tue, 21 Mar 2017 06:04:26 -0300 Subject: [PATCH] Review fixes --- src/gui/MainWindow.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index bdfa13b46..0f883e4aa 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -530,11 +530,7 @@ void MainWindow::updateWindowTitle() windowTitle = QString("%1 - %2").arg(customWindowTitlePart, BaseWindowTitle); } - if (m_ui->tabWidget->isModified(tabWidgetIndex)) { - setWindowModified(true); - } else { - setWindowModified(false); - } + setWindowModified(m_ui->tabWidget->isModified(tabWidgetIndex)); setWindowTitle(windowTitle); }