Git commit 65fb67c8da5db97254d6f0c8082424060727cda1 by David Faure. Committed on 30/11/2012 at 23:14. Pushed by dfaure into branch 'frameworks'. Disable the use of KSelectionWatcher when using Qt4, since it requires Qt5. M +2 -2 kdeui/widgets/kmenubar.cpp http://commits.kde.org/kdelibs/65fb67c8da5db97254d6f0c8082424060727cda1 diff --git a/kdeui/widgets/kmenubar.cpp b/kdeui/widgets/kmenubar.cpp index 03d4da7..5ea47bf 100644 --- a/kdeui/widgets/kmenubar.cpp +++ b/kdeui/widgets/kmenubar.cpp @@ -171,7 +171,7 @@ void KMenuBar::setTopLevelMenuInternal(bool top_level) d->topLevel =3D top_level; if ( isTopLevelMenu() ) { -#if HAVE_X11 +#if HAVE_X11 && QT_VERSION >=3D QT_VERSION_CHECK(5, 0, 0) /*KSelectionWatc= her requires Qt5*/ d->selection =3D new KSelectionWatcher( KMenuBarPrivate::makeSelecti= onAtom(), DefaultScreen( QX11Info::display())); connect( d->selection, SIGNAL(newOwner(Window)), @@ -286,7 +286,7 @@ void KMenuBar::updateFallbackSize() { if( !d->topLevel ) return; -#if HAVE_X11 +#if HAVE_X11 && QT_VERSION >=3D QT_VERSION_CHECK(5, 0, 0) if( d->selection->owner() !=3D None ) #endif { // somebody is managing us, don't mess anything, undo changes