From c748f4634682407095fd3ebc461a35ff093b0ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 7 Jun 2005 12:08:23 +0000 Subject: [PATCH] Make sure to write the rules settings to the config file before launching the kcm that will edit it. svn path=/trunk/KDE/kdebase/kwin/; revision=423079 --- rules.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rules.cpp b/rules.cpp index 5689653b0d..35f6f83f24 100644 --- a/rules.cpp +++ b/rules.cpp @@ -876,6 +876,7 @@ WindowRules Workspace::findWindowRules( const Client* c, bool ignore_temporary ) void Workspace::editWindowRules( Client* c ) { + writeWindowRules(); KApplication::kdeinitExec( "kwin_rules_dialog", QStringList() << "--wid" << QString::number( c->window())); } @@ -901,6 +902,7 @@ void Workspace::loadWindowRules() void Workspace::writeWindowRules() { + rulesUpdatedTimer.stop(); KConfig cfg( "kwinrulesrc" ); cfg.setGroup( "General" ); cfg.writeEntry( "count", rules.count());