[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r4701 - gnunet-qt/src/core
From: |
gnunet |
Subject: |
[GNUnet-SVN] r4701 - gnunet-qt/src/core |
Date: |
Sun, 25 Mar 2007 13:16:05 -0600 (MDT) |
Author: durner
Date: 2007-03-25 13:16:04 -0600 (Sun, 25 Mar 2007)
New Revision: 4701
Modified:
gnunet-qt/src/core/main.cc
Log:
hide console window on win32
Modified: gnunet-qt/src/core/main.cc
===================================================================
--- gnunet-qt/src/core/main.cc 2007-03-25 17:28:45 UTC (rev 4700)
+++ gnunet-qt/src/core/main.cc 2007-03-25 19:16:04 UTC (rev 4701)
@@ -47,6 +47,11 @@
static struct GE_Context *ectx, *stdECtx;
static struct GC_Configuration *cfg;
+#if defined(Q_OS_WIN)
+static int debug_mode = NO;
+#endif
+
+
/**
* GNUnet's header #defines COMMAND_LINE_OPTION_XXX as call to gettext_noop.
* Since we do not link against gettext, but use Qt, we #define gettext_noop
here
@@ -60,6 +65,11 @@
*/
static struct CommandLineOption gnunetqtOptions[] = {
COMMAND_LINE_OPTION_CFG_FILE(&cfgFilename), /* -c */
+#if defined(Q_OS_WIN)
+ { 'd', "debug", NULL,
+ gettext_noop("run in debug mode"),
+ 0, &gnunet_getopt_configure_set_one, &debug_mode },
+#endif
COMMAND_LINE_OPTION_HELP(gettext_noop("GNUnet Qt user interface.")), /* -h */
COMMAND_LINE_OPTION_HOSTNAME, /* -H */
COMMAND_LINE_OPTION_LOGGING, /* -L */
@@ -249,6 +259,11 @@
app->loadPlugins();
app->showWindow();
+#if defined(Q_OS_WIN)
+ if (!debug_mode)
+ FreeConsole();
+#endif
+
ret = app->exec();
delete app;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r4701 - gnunet-qt/src/core,
gnunet <=