diff --git a/src/llconclientdlg.cpp b/src/llconclientdlg.cpp index 0f65b843..0200f6d7 100755 --- a/src/llconclientdlg.cpp +++ b/src/llconclientdlg.cpp @@ -31,27 +31,12 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP, const bool bNewDisalbeLEDs, QWidget* parent, Qt::WindowFlags f ) : - QDialog ( parent, f ), - pClient ( pNCliP ), + QDialog ( parent, f ), + pClient ( pNCliP ), bUnreadChatMessage ( false ), - ClientSettingsDlg ( pNCliP, parent -#ifdef _WIN32 - // this somehow only works reliable on Windows - , Qt::WindowMinMaxButtonsHint -#endif - ), - ChatDlg ( parent -#ifdef _WIN32 - // this somehow only works reliable on Windows - , Qt::WindowMinMaxButtonsHint -#endif - ), - ConnectDlg ( parent -#ifdef _WIN32 - // this somehow only works reliable on Windows - , Qt::WindowMinMaxButtonsHint -#endif - ) + ClientSettingsDlg ( pNCliP, parent, Qt::Window ), + ChatDlg ( parent, Qt::Window ), + ConnectDlg ( parent, Qt::Dialog ) { setupUi ( this ); diff --git a/src/main.cpp b/src/main.cpp index 82bc60f9..76c19569 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -317,12 +317,8 @@ int main ( int argc, char** argv ) &Client, bConnectOnStartup, bDisalbeLEDs, - 0 -#ifdef _WIN32 - // this somehow only works reliable on Windows - , Qt::WindowMinMaxButtonsHint -#endif - ); + 0, + Qt::Window ); // set main window pMainWindow = &ClientDlg; @@ -365,12 +361,8 @@ int main ( int argc, char** argv ) // GUI object for the server CLlconServerDlg ServerDlg ( &Server, - 0 -#ifdef _WIN32 - // this somehow only works reliable on Windows - , Qt::WindowMinMaxButtonsHint -#endif - ); + 0, + Qt::Window ); // set main window pMainWindow = &ServerDlg;