diff --git a/src/app/tape/tmainwindow.cpp b/src/app/tape/tmainwindow.cpp index f60bb17fa..7227064d8 100644 --- a/src/app/tape/tmainwindow.cpp +++ b/src/app/tape/tmainwindow.cpp @@ -377,6 +377,9 @@ void TMainWindow::FileSaveAs() void TMainWindow::AboutToShowWindowMenu() { ui->menuWindow->clear(); + ui->menuWindow->addAction(tr("&New Window"), this, SLOT(NewWindow())); + ui->menuWindow->addSeparator(); + QList windows = qApp->MainWindows(); for (int i = 0; i < windows.count(); ++i) { @@ -1100,6 +1103,13 @@ void TMainWindow::SaveMFullName() ui->tableWidget->blockSignals(false); } +//--------------------------------------------------------------------------------------------------------------------- +void TMainWindow::NewWindow() +{ + qApp->NewMainWindow(); + qApp->MainWindow()->activateWindow(); +} + //--------------------------------------------------------------------------------------------------------------------- void TMainWindow::SetupMenu() { diff --git a/src/app/tape/tmainwindow.h b/src/app/tape/tmainwindow.h index 601828d08..0cde1829d 100644 --- a/src/app/tape/tmainwindow.h +++ b/src/app/tape/tmainwindow.h @@ -102,6 +102,8 @@ private slots: void SaveMDescription(); void SaveMFullName(); + void NewWindow(); + private: Q_DISABLE_COPY(TMainWindow) Ui::TMainWindow *ui;