Skip to content
Permalink
Browse files
fix #5355: remove touch action before registering the shortcuts list
  • Loading branch information
jef-n committed Apr 15, 2012
1 parent 60f7b7d commit 0dc5080a99ea63db365b4daeb5a8024a3d98886e
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/app/qgisapp.cpp
@@ -636,21 +636,21 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
QgsDebugMsg( "Tips are disabled" );
}

// supposedly all actions have been added, now register them to the shortcut manager
QgsShortcutsManager::instance()->registerAllChildrenActions( this );

// request notification of FileOpen events (double clicking a file icon in Mac OS X Finder)
QgsApplication::setFileOpenEventReceiver( this );

#ifdef HAVE_TOUCH
//add reacting to long click in android
grabGesture( Qt::TapAndHoldGesture );
#else
//remove mActionTouch button
//remove mActionTouch button before populuating the shortcuts
delete mActionTouch;
mActionTouch = 0;
#endif

// supposedly all actions have been added, now register them to the shortcut manager
QgsShortcutsManager::instance()->registerAllChildrenActions( this );

// request notification of FileOpen events (double clicking a file icon in Mac OS X Finder)
QgsApplication::setFileOpenEventReceiver( this );

// update windows
qApp->processEvents();

0 comments on commit 0dc5080

Please sign in to comment.