summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-02-22 10:45:41 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2012-02-23 18:42:01 +0000
commit230a8a469535808aef7d563ae0902e561679da48 (patch)
tree335151b7098a48c4b98a95fb16f137109c86a49a
parent48886589cfe492d729390f8eced8900b66e8c9ff (diff)
When we can't proceed because we don't have a display number, say so
Based on a patch taken from VcXsrv git on sourceforge which uses the GPLv3 license
-rw-r--r--main.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.cc b/main.cc
index ceaaa84..0b739a6 100644
--- a/main.cc
+++ b/main.cc
@@ -109,7 +109,10 @@ class CMyWizard : public CWizard
}
// Check for valid input
if (config.display.empty())
+ {
+ MessageBox(hwndDlg,"Please fill in a display number.","Error",MB_OK);
SetWindowLong(hwndDlg, DWL_MSGRESULT, -1);
+ }
else
SetWindowLong(hwndDlg, DWL_MSGRESULT, IDD_CLIENTS);
return TRUE;