From 20ca1383a97408cae1ccee8a26ef5316932b2083 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Mon, 2 Sep 2013 08:42:36 +0200 Subject: [PATCH] fixed issue 96 --- src/gui/UBMainWindow.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/gui/UBMainWindow.cpp b/src/gui/UBMainWindow.cpp index 680ed93d..93292c26 100644 --- a/src/gui/UBMainWindow.cpp +++ b/src/gui/UBMainWindow.cpp @@ -202,14 +202,6 @@ bool UBMainWindow::yesNoQuestion(QString windowTitle, QString text) #ifdef Q_WS_X11 // to avoid to be handled by x11. This allows us to keep to the back all the windows manager stuff like palette, toolbar ... messageBox.setWindowFlags(Qt::Dialog | Qt::X11BypassWindowManagerHint); - - //To calculate the correct size - messageBox.show(); - QSize messageBoxSize=messageBox.size(); - - //to center on the screen because it's no more handled by X11 - QRect controlScreenRect = UBApplication::applicationController->displayManager()->controlGeometry(); - messageBox.move((controlScreenRect.width()/2) - (messageBoxSize.width()*0.5), (controlScreenRect.height()/2) - (messageBoxSize.height()*0.5)); #else messageBox.setWindowFlags(Qt::Dialog); #endif