summaryrefslogtreecommitdiffstats
path: root/qt-gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r--qt-gui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index 2b16c2d77..a3b8b44b6 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -78,12 +78,14 @@ static QString decodeUtf8(const QByteArray &fname)
}
#endif
-void init_ui(int *argcp, char ***argvp)
+void init_qt(int *argcp, char ***argvp)
{
- QVariant v;
-
application = new QApplication(*argcp, *argvp);
+}
+void init_ui(void)
+{
+ QVariant v;
// tell Qt to use system proxies
// note: on Linux, "system" == "environment variables"
QNetworkProxyFactory::setUseSystemConfiguration(true);
@@ -155,8 +157,6 @@ void init_ui(int *argcp, char ***argvp)
window->setTitle(MWTF_FILENAME);
else
window->setTitle(MWTF_DEFAULT);
-
- return;
}
void run_ui(void)