QTfrontend/ui/page/pagenet.cpp
branchwebgl
changeset 8833 c13ebed437cb
parent 8636 fa8cd97a0a09
child 9080 9b42757d7e71
equal deleted inserted replaced
8450:404ddce27b23 8833:c13ebed437cb
    70 {
    70 {
    71     QHBoxLayout * footerLayout = new QHBoxLayout();
    71     QHBoxLayout * footerLayout = new QHBoxLayout();
    72 
    72 
    73     BtnNetSvrStart = formattedButton(QPushButton::tr("Start server"));
    73     BtnNetSvrStart = formattedButton(QPushButton::tr("Start server"));
    74     BtnNetSvrStart->setMinimumWidth(180);
    74     BtnNetSvrStart->setMinimumWidth(180);
    75     BtnNetSvrStart->setVisible(haveServer);
    75     QString serverPath = bindir->absolutePath() + "/hedgewars-server";
       
    76 #ifdef Q_WS_WIN
       
    77     serverPath += + ".exe";
       
    78 #endif
       
    79     QFile server(serverPath);
       
    80     BtnNetSvrStart->setVisible(server.exists());
    76 
    81 
    77     footerLayout->addStretch();
    82     footerLayout->addStretch();
    78     footerLayout->addWidget(BtnNetSvrStart);
    83     footerLayout->addWidget(BtnNetSvrStart);
    79 
    84 
    80     return footerLayout;
    85     return footerLayout;