diff --git a/kcmkwin/kwinrules/detectwidget.cpp b/kcmkwin/kwinrules/detectwidget.cpp index 6322c9f325..2050012f47 100644 --- a/kcmkwin/kwinrules/detectwidget.cpp +++ b/kcmkwin/kwinrules/detectwidget.cpp @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include @@ -62,7 +61,6 @@ void DetectDialog::readWindow( WId w ) emit detectionDone( false ); return; } - KXErrorHandler err; KWin::WindowInfo info = KWin::windowInfo( w, NET::WMName | NET::WMWindowType, NET::WM2WindowClass | NET::WM2WindowRole | NET::WM2ClientMachine ); @@ -80,11 +78,6 @@ void DetectDialog::readWindow( WId w ) title = info.name(); extrarole = ""; // TODO machine = info.clientMachine(); - if( err.error( true )) - { - emit detectionDone( false ); - return; - } executeDialog(); }