diff --git a/YACReader/main_window_viewer.cpp b/YACReader/main_window_viewer.cpp index 62a43c1a..c836b1ae 100644 --- a/YACReader/main_window_viewer.cpp +++ b/YACReader/main_window_viewer.cpp @@ -628,6 +628,8 @@ void MainWindowViewer::newVersion() msgBox.setInformativeText(tr("Do you want to download the new version?")); msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No); msgBox.setDefaultButton(QMessageBox::Yes); + msgBox.setWindowFlags(Qt::WindowStaysOnTopHint); + msgBox.setModal(true); int ret = msgBox.exec(); if(ret==QMessageBox::Yes){