From 4c7ac1fd5bf9d69250e89ff20ecc117c49371458 Mon Sep 17 00:00:00 2001 From: Rivo Laks Date: Thu, 27 Sep 2007 17:04:56 +0000 Subject: [PATCH] KDialog::exec() doesn't return button code svn path=/trunk/KDE/kdebase/workspace/; revision=717836 --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 7de377536e..2e18ffe3f5 100644 --- a/main.cpp +++ b/main.cpp @@ -161,7 +161,7 @@ Application::Application( ) // Something has gone seriously wrong AlternativeWMDialog dialog; QString cmd = "kwin"; - if( dialog.exec() == KDialog::Ok ) + if( dialog.exec() == QDialog::Accepted ) { cmd = dialog.selectedWM(); }