diff options
Diffstat (limited to 'clients/tde/src/app/main.cpp')
-rw-r--r-- | clients/tde/src/app/main.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/clients/tde/src/app/main.cpp b/clients/tde/src/app/main.cpp index 09b81e0..b2d2988 100644 --- a/clients/tde/src/app/main.cpp +++ b/clients/tde/src/app/main.cpp @@ -4,6 +4,7 @@ #include "define.h" #include <kaboutdata.h> #include <kapplication.h> +#include <kinputdialog.h> #include <kcmdlineargs.h> #include <klocale.h> #include <kurl.h> @@ -33,8 +34,8 @@ int main(int argc, char *argv[]) KApplication app; // Read MDI settings (window positions, etc) + // FIXME KConfig *c = app.config(); - // RAJA FIXME // Create main window RemoteMDI *mainWin = new RemoteMDI(); @@ -44,6 +45,21 @@ int main(int argc, char *argv[]) if (args->count() > 0) { mainWin->setServerHost(args->arg(0)); } + else { + bool accepted; + TQString serverHost = KInputDialog::getText(i18n("Enter server FQDN"), i18n("Please enter the FQDN of the desired remote laboratory server below"), "", &accepted); + if (accepted) { + if (serverHost != "") { + mainWin->setServerHost(serverHost); + } + else { + return -1; + } + } + else { + return -1; + } + } args->clear(); mainWin->show(); |