aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2019-11-11 22:34:52 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2019-11-11 22:34:52 +0800
commit9f139f5807c3c18a77ebaa8e646355c19dca5ca9 (patch)
treeb6c121f44e79f48b74b782cc23ad2c0975a6923c /qmidiplayer-desktop
parent2aa2ce24207d2e495dbe9d2cc3656229aa768f19 (diff)
downloadQMidiPlayer-9f139f5807c3c18a77ebaa8e646355c19dca5ca9.tar.xz
Partially revert 78ba2cf1 "MessageBox show at center of the current monitor".
QDesktopWidget is obsolete. Also when built against recent Qt versions, this bug can't be reproduced with the commit reverted.
Diffstat (limited to 'qmidiplayer-desktop')
-rw-r--r--qmidiplayer-desktop/qmpsettingswindow.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/qmidiplayer-desktop/qmpsettingswindow.cpp b/qmidiplayer-desktop/qmpsettingswindow.cpp
index ee08fb9..17e16bf 100644
--- a/qmidiplayer-desktop/qmpsettingswindow.cpp
+++ b/qmidiplayer-desktop/qmpsettingswindow.cpp
@@ -4,7 +4,6 @@
#include <QFileDialog>
#include <QDir>
#include <QMessageBox>
-#include <QDesktopWidget>
#include <QStandardPaths>
#include "qmpsettingswindow.hpp"
#include "qmpdeviceprioritydialog.hpp"
@@ -395,9 +394,7 @@ void qmpSettingsWindow::postInit()
}
if(selecteddev=="Internal FluidSynth"&&!sf)
{
- // blmark: show dialog at the current screen which user using now.
- int curMonitor = QApplication::desktop()->screenNumber(this);
- if(QMessageBox::question(QDesktopWidget().screen(curMonitor),//this,
+ if(QMessageBox::question(this,
tr("No soundfont loaded"),
tr("Internal fluidsynth is the only available MIDI output but it has no soundfont set. "
"Would you like to setup soundfonts now? You may have to reload the internal synth afterwards."))==QMessageBox::Yes)