From ce80ae45239d95ec431f1212624dbedeb500fd40 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 17 Nov 2015 14:49:28 +0200 Subject: [PATCH] Tape show correct placeholder [*] in menu Window. --HG-- branch : develop --- src/app/tape/tmainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/tape/tmainwindow.cpp b/src/app/tape/tmainwindow.cpp index dd8ae068b..df1aa5819 100644 --- a/src/app/tape/tmainwindow.cpp +++ b/src/app/tape/tmainwindow.cpp @@ -660,7 +660,7 @@ void TMainWindow::AboutToShowWindowMenu() const int index = title.lastIndexOf("[*]"); if (index != -1) { - title.replace(index, 3, "*"); + window->isWindowModified() ? title.replace(index, 3, "*") : title.replace(index, 3, ""); } QAction *action = ui->menuWindow->addAction(title, this, SLOT(ShowWindow()));