make login appear where it belongs
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 3 Oct 2010 18:06:59 +0000 (18:06 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 3 Oct 2010 18:06:59 +0000 (18:06 +0000)
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@600 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

src/dialogs/login.cpp

index b257ac8..1648647 100644 (file)
@@ -32,7 +32,7 @@
 MLogin::MLogin()
 {
        setWindowTitle(tr("Magic Smoke Login"));
-       setWindowFlags(windowFlags()|Qt::Window);
+       setWindowFlags(windowFlags()|Qt::Window|Qt::Dialog);
        QVBoxLayout*vl;
        setLayout(vl=new QVBoxLayout);
        //create Menu Bar
@@ -72,6 +72,7 @@ MLogin::MLogin()
        initProfiles();
        loadProfile();
        
+       //react to Escape button
        QAction *act=new QAction(this);
        act->setShortcut(Qt::Key_Escape);
        connect(act,SIGNAL(triggered(bool)),this,SLOT(close()));