QTfrontend/ui/page/pagenet.cpp
branchwebgl
changeset 8833 c13ebed437cb
parent 8636 fa8cd97a0a09
child 9080 9b42757d7e71
--- a/QTfrontend/ui/page/pagenet.cpp	Wed Feb 20 02:21:58 2013 +0100
+++ b/QTfrontend/ui/page/pagenet.cpp	Tue Apr 02 21:00:57 2013 +0200
@@ -72,7 +72,12 @@
 
     BtnNetSvrStart = formattedButton(QPushButton::tr("Start server"));
     BtnNetSvrStart->setMinimumWidth(180);
-    BtnNetSvrStart->setVisible(haveServer);
+    QString serverPath = bindir->absolutePath() + "/hedgewars-server";
+#ifdef Q_WS_WIN
+    serverPath += + ".exe";
+#endif
+    QFile server(serverPath);
+    BtnNetSvrStart->setVisible(server.exists());
 
     footerLayout->addStretch();
     footerLayout->addWidget(BtnNetSvrStart);