/***************************************************************************
- * Copyright (C) 2005-2018 by the Quassel Project *
+ * Copyright (C) 2005-2020 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
return result;
}
+// -----------------------------------------------------------------------------------------------------------------------------------------
+
+bool SignalSpy::wait(std::chrono::milliseconds timeout)
+{
+ bool result = InvocationSpy::wait(timeout);
+ for (auto&& connection : _connections) {
+ QObject::disconnect(connection);
+ }
+ _connections.clear();
+ return result;
+}
+
} // namespace test