[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r1752: Don't create the help browser window until we actually need (in trunk: . src)
Author: edmanm
Date: 2007-05-26 01:36:12 -0400 (Sat, 26 May 2007)
New Revision: 1752
Modified:
trunk/
trunk/src/vidalia.cpp
Log:
r1868@adrastea: edmanm | 2007-05-26 00:16:14 -0400
Don't create the help browser window until we actually need it.
Property changes on: trunk
___________________________________________________________________
svk:merge ticket from /vidalia/local/trunk [r1868] on 54b3572a-7227-0410-958f-53ecd705b71a
Modified: trunk/src/vidalia.cpp
===================================================================
--- trunk/src/vidalia.cpp 2007-05-26 04:08:20 UTC (rev 1751)
+++ trunk/src/vidalia.cpp 2007-05-26 05:36:12 UTC (rev 1752)
@@ -117,14 +117,13 @@
/* Creates a TorControl object, used to talk to Tor. */
_torControl = new TorControl();
- /* Creates a help browser object, used to display various help topics. */
- _help = new HelpBrowser();
}
/** Destructor */
Vidalia::~Vidalia()
{
- delete _help;
+ if (_help)
+ delete _help;
delete _torControl;
}
@@ -298,6 +297,8 @@
void
Vidalia::help(QString topic)
{
+ if (!_help)
+ _help = new HelpBrowser();
_help->showWindow(topic);
}