Tape show correct placeholder [*] in menu Window.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-11-17 14:49:28 +02:00
parent dc1b593b4b
commit ce80ae4523

View File

@ -660,7 +660,7 @@ void TMainWindow::AboutToShowWindowMenu()
const int index = title.lastIndexOf("[*]"); const int index = title.lastIndexOf("[*]");
if (index != -1) 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())); QAction *action = ui->menuWindow->addAction(title, this, SLOT(ShowWindow()));