Commit 295fdfcb authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Fix tests after recent changes

parent b1428d13
......@@ -213,6 +213,7 @@ void TestKWaylandConfig::testScaleChange()
// Prepare monitor & spy
KScreen::ConfigMonitor *monitor = KScreen::ConfigMonitor::instance();
monitor->addConfig(config);
monitor->addConfig(config2);
QSignalSpy configSpy(monitor, &KScreen::ConfigMonitor::configurationChanged);
QSignalSpy configSpy2(monitor, &KScreen::ConfigMonitor::configurationChanged);
......
......@@ -94,7 +94,7 @@ ConfigPtr Fake::config() const
void Fake::setConfig(const ConfigPtr &config)
{
qCDebug(KSCREEN_FAKE) << "set config" << config->outputs();
mConfig = config;
mConfig = config->clone();
emit configChanged(mConfig);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment