[Ktutorial-commits] SF.net SVN: ktutorial:[274] trunk/ktutorial/ktutorial-library/tests/ WaitForWin
Status: Alpha
Brought to you by:
danxuliu
From: <dan...@us...> - 2010-10-17 22:44:14
|
Revision: 274 http://ktutorial.svn.sourceforge.net/ktutorial/?rev=274&view=rev Author: danxuliu Date: 2010-10-17 22:44:08 +0000 (Sun, 17 Oct 2010) Log Message: ----------- Fix QDbusConnection::registerObject assert when Qt is compiled in debug mode. Modified Paths: -------------- trunk/ktutorial/ktutorial-library/tests/WaitForWindowTest.cpp Modified: trunk/ktutorial/ktutorial-library/tests/WaitForWindowTest.cpp =================================================================== --- trunk/ktutorial/ktutorial-library/tests/WaitForWindowTest.cpp 2010-10-03 19:17:27 UTC (rev 273) +++ trunk/ktutorial/ktutorial-library/tests/WaitForWindowTest.cpp 2010-10-17 22:44:08 UTC (rev 274) @@ -57,6 +57,12 @@ }; void WaitForWindowTest::initTestCase() { + //The name of the application must be set to avoid failing an assert in + //QDBusConnection::registerObject (dbus/qdbusconnection.cpp:697) that checks + //for a proper object path. The path given is based on the application name, + //and the application name has to be set to be a valid path. + qApp->setApplicationName("WaitForWindowTest"); + mMainWindow = new KXmlGuiWindow(); KTutorial::self()->setup(mMainWindow); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |