[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [sprinter/gko/master] runners/uri: move KRun to the GUI thread, as it needs to make widgets
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2014-03-06 10:20:26
Message-ID: E1WLVPe-0007ZS-QS () scm ! kde ! org
[Download RAW message or body]

Git commit 113a4e8b6f18985b30abe3a4cbf78d1818423497 by Aaron J. Seigo.
Committed on 26/02/2014 at 15:23.
Pushed by aseigo into branch 'gko/master'.

move KRun to the GUI thread, as it needs to make widgets

M  +1    -0    runners/uri/uri.cpp

http://commits.kde.org/sprinter/113a4e8b6f18985b30abe3a4cbf78d1818423497

diff --git a/runners/uri/uri.cpp b/runners/uri/uri.cpp
index 521ca8e..5d757a8 100644
--- a/runners/uri/uri.cpp
+++ b/runners/uri/uri.cpp
@@ -87,6 +87,7 @@ bool UriRunner::exec(const Sprinter::QueryMatch &match)
     KRun *krun = new KRun(match.data().toString(), 0);
     connect(krun, &KRun::finished,
             [&]() { success = !krun->hasError(); loop.exit(); });
+    krun->moveToThread(QCoreApplication::instance()->thread());
     loop.exec();
     return success;
 }

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic