diff options
author | marha <marha@users.sourceforge.net> | 2012-02-22 10:45:41 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2012-02-23 18:42:01 +0000 |
commit | 230a8a469535808aef7d563ae0902e561679da48 (patch) | |
tree | 335151b7098a48c4b98a95fb16f137109c86a49a | |
parent | 48886589cfe492d729390f8eced8900b66e8c9ff (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.cc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |