summaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@theqtcompany.com>2015-03-06 10:29:52 +0100
committerKai Koehne <kai.koehne@theqtcompany.com>2015-03-06 09:34:53 +0000
commit30d3b33e8da14240653b3c8948c8830744fc118c (patch)
tree0f1bca19d1ba0577ec401edcaafeff48ea33548c /src/libs
parentf160b711fe28fab24331d7365ddb2152d5a09e6f (diff)
Fix failing autotests
Commit 603d9bb1f49c58f2 deleted RemoteClientPrivate when the engine is shut down, but the autotests expect to re-use the singleton in the same process afterwards. Fix this by creating a new - clean - RemoteClientPrivate instance instead on shutdown. Change-Id: Iafa701f44c654db2d7e7d838ea7a27e978eb1913 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/installer/remoteclient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/installer/remoteclient.cpp b/src/libs/installer/remoteclient.cpp
index 445354f89..bac96573b 100644
--- a/src/libs/installer/remoteclient.cpp
+++ b/src/libs/installer/remoteclient.cpp
@@ -79,7 +79,7 @@ void RemoteClient::shutdown()
{
Q_D(RemoteClient);
d->shutdown();
- d_ptr.reset();
+ d_ptr.reset(new RemoteClientPrivate(this));
}
bool RemoteClient::isActive() const