From 933163257d3d649974efb25b603b9c1db4244838 Mon Sep 17 00:00:00 2001 From: NeoTheFox Date: Tue, 24 Mar 2015 16:18:12 +0300 Subject: [PATCH] Set dialog title --- mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 7bb076e..8cd0e53 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -964,6 +964,7 @@ void MainWindow::closeEvent(QCloseEvent *event) if(sending) dialog.setText(tr("Printer is working!\nAre you shure you want to exit?")); else dialog.setText(tr("Printer is connected!\nAre you shure you want tot exit?")); dialog.setIcon(QMessageBox::Warning); + dialog.setWindowTitle(tr("Warning")); //Save pointer to check what button was clicked QPushButton *exitButton = dialog.addButton(tr("Exit"), QMessageBox::AcceptRole);