aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_gui')
-rw-r--r--qtmips_gui/aboutdialog.cpp3
-rw-r--r--qtmips_gui/mainwindow.cpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/qtmips_gui/aboutdialog.cpp b/qtmips_gui/aboutdialog.cpp
index 71f7b8f..c14f0a8 100644
--- a/qtmips_gui/aboutdialog.cpp
+++ b/qtmips_gui/aboutdialog.cpp
@@ -51,6 +51,9 @@ AboutDialog::AboutDialog(QWidget *parent)
{
QLabel *lbl;
+ setWindowModality(Qt::WindowModal);
+ setAttribute(Qt::WA_DeleteOnClose);
+
setWindowTitle(tr("About Qt Mips"));
all = new QVBoxLayout(this);
diff --git a/qtmips_gui/mainwindow.cpp b/qtmips_gui/mainwindow.cpp
index f4473c7..cdf943d 100644
--- a/qtmips_gui/mainwindow.cpp
+++ b/qtmips_gui/mainwindow.cpp
@@ -314,7 +314,7 @@ void MainWindow::show_symbol_dialog(){
void MainWindow::about_qtmips()
{
AboutDialog *aboutdialog = new AboutDialog(this);
- aboutdialog->exec();
+ aboutdialog->show();
}
void MainWindow::about_qt()