Skip to content

Commit

Permalink
fix #5355: remove touch action before registering the shortcuts list
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Apr 15, 2012
1 parent 60f7b7d commit 0dc5080
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/app/qgisapp.cpp
Expand Up @@ -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();

Expand Down

0 comments on commit 0dc5080

Please sign in to comment.