wpa_gui: Use dialog window type
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 29 Oct 2014 10:12:36 +0000 (11:12 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 1 Nov 2014 13:55:49 +0000 (15:55 +0200)
This helps window managers treat the window properly. Mostly tiling WMs
are affected by this. All other windows inherit this option from QDialog
already.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
wpa_supplicant/wpa_gui-qt4/wpagui.cpp

index 6bba8d2..91874d4 100644 (file)
@@ -36,6 +36,7 @@ WpaGui::WpaGui(QApplication *_app, QWidget *parent, const char *, Qt::WFlags)
        : QMainWindow(parent), app(_app)
 {
        setupUi(this);
+       this->setWindowFlags(Qt::Dialog);
 
 #ifdef CONFIG_NATIVE_WINDOWS
        fileStopServiceAction = new QAction(this);