diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-07-22 17:05:57 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-07-22 17:05:57 -0500 |
commit | a3e28da8e9b180a9a9552ee3e280e6520f53cc6b (patch) | |
tree | e6646fc8aeb4324492c8a1aeb05500e4dbef8944 /clients/tde/src/app/main.cpp | |
parent | 043cc2c3d96a6270ac4d664911ffaa54f06db925 (diff) | |
download | ulab-a3e28da8e9b180a9a9552ee3e280e6520f53cc6b.tar.gz ulab-a3e28da8e9b180a9a9552ee3e280e6520f53cc6b.zip |
Fix client
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(); |