Changing build system to waf
diff --git a/main.cpp b/main.cpp
index c12375a..6c2ff22 100644
--- a/main.cpp
+++ b/main.cpp
@@ -2,10 +2,9 @@
#include "chatdialog.h"
#include <QMessageBox>
-int main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
-
- Q_INIT_RESOURCE(demo);
+ // Q_INIT_RESOURCE(demo);
QApplication app(argc, argv);
if (!QSystemTrayIcon::isSystemTrayAvailable()) {
@@ -14,8 +13,8 @@
"on this system."));
return 1;
}
- QApplication::setQuitOnLastWindowClosed(false);
-
+ QApplication::setQuitOnLastWindowClosed (false);
+
#ifdef __APPLE__
app.setWindowIcon(QIcon(":/demo.icns"));
#else
@@ -23,7 +22,10 @@
#endif
ChatDialog dialog;
- dialog.show();
- dialog.activateWindow();
+
+ dialog.show ();
+ dialog.activateWindow ();
+ dialog.raise ();
+
return app.exec();
}