[rkward-cvs] SF.net SVN: rkward:[4358] trunk/rkward/rkward/rbackend/ rkfrontendtransmitter.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Tue Oct 9 09:13:16 UTC 2012


Revision: 4358
          http://rkward.svn.sourceforge.net/rkward/?rev=4358&view=rev
Author:   tfry
Date:     2012-10-09 09:13:16 +0000 (Tue, 09 Oct 2012)
Log Message:
-----------
Try to enable running from build-dir on Mac

Modified Paths:
--------------
    trunk/rkward/rkward/rbackend/rkfrontendtransmitter.cpp

Modified: trunk/rkward/rkward/rbackend/rkfrontendtransmitter.cpp
===================================================================
--- trunk/rkward/rkward/rbackend/rkfrontendtransmitter.cpp	2012-10-08 19:01:12 UTC (rev 4357)
+++ trunk/rkward/rkward/rbackend/rkfrontendtransmitter.cpp	2012-10-09 09:13:16 UTC (rev 4358)
@@ -73,6 +73,9 @@
 	connect (backend, SIGNAL (finished (int, QProcess::ExitStatus)), this, SLOT (backendExit (int)));
 	QString backend_executable = KStandardDirs::findExe (QDir::toNativeSeparators (QCoreApplication::applicationDirPath () + "/rkward.rbackend"));
 	if (backend_executable.isEmpty ()) backend_executable = KStandardDirs::findExe (QDir::toNativeSeparators (QCoreApplication::applicationDirPath () + "/rbackend/rkward.rbackend"));	// for running directly from the build-dir
+#ifdef Q_WS_MAC
+        if (backend_executable.isEmpty ()) backend_executable = KStandardDirs::findExe (QDir::toNativeSeparators (QCoreApplication::applicationDirPath () + "/../../../rbackend/rkward.rbackend"));
+#endif
 	RK_ASSERT (!backend_executable.isEmpty ());
 	backend->start (backend_executable, args, QIODevice::ReadOnly);
 

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the rkward-tracker mailing list