diff --git a/main.cpp b/main.cpp index 2e18ffe3f5..760d44ef8e 100644 --- a/main.cpp +++ b/main.cpp @@ -29,6 +29,7 @@ License. See the file "COPYING" for the exact licensing terms. #include #include +#include #include #include #include @@ -122,7 +123,10 @@ class AlternativeWMDialog : public KDialog void addWM( const QString& wm ) { // TODO: check if wm is installed - wmList->addItem( wm ); + if( !KStandardDirs::findExe( wm ).isEmpty() ) + { + wmList->addItem( wm ); + } } QString selectedWM() const { return wmList->currentText(); }