Skip to content

Commit

Permalink
[auth] Remove Authentication action from Settings menu
Browse files Browse the repository at this point in the history
  • Loading branch information
dakcarto committed Sep 24, 2015
1 parent ee5e120 commit b6459b0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
8 changes: 0 additions & 8 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,6 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
QgsAuthManager::instance()->init( QgsApplication::pluginPath() );
if ( QgsAuthManager::instance()->isDisabled() )
{
mActionAuthentication->setEnabled( false );
QMessageBox::warning( this, tr( "Authentication System" ),
QgsAuthManager::instance()->disabledMessage() + "\n\n" +
tr( "Resources authenticating via the system can not be accessed." ) );
Expand Down Expand Up @@ -1252,8 +1251,6 @@ void QgisApp::createActions()
connect( mActionExit, SIGNAL( triggered() ), this, SLOT( fileExit() ) );
connect( mActionDxfExport, SIGNAL( triggered() ), this, SLOT( dxfExport() ) );

connect( mActionAuthentication, SIGNAL( triggered() ), this, SLOT( editAuthenticationConfigs() ) );

// Edit Menu Items

connect( mActionUndo, SIGNAL( triggered() ), mUndoWidget, SLOT( undo() ) );
Expand Down Expand Up @@ -10646,11 +10643,6 @@ void QgisApp::masterPasswordSetup()
this, SLOT( eraseAuthenticationDatabase() ) );
}

void QgisApp::editAuthenticationConfigs()
{
showOptionsDialog( this, QString( "mOptionsPageAuth" ) );
}

void QgisApp::eraseAuthenticationDatabase()
{
// First check if now is a good time to interact with the user, e.g. project is done loading.
Expand Down
3 changes: 0 additions & 3 deletions src/app/qgisapp.h
Original file line number Diff line number Diff line change
Expand Up @@ -620,9 +620,6 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
#endif
void namRequestTimedOut( QNetworkReply *reply );

//! Open authentication configs editor (in Options)
void editAuthenticationConfigs();

//! Schedule and erase of the authentication database upon confirmation
void eraseAuthenticationDatabase();

Expand Down
10 changes: 0 additions & 10 deletions src/ui/qgisapp.ui
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@
<addaction name="mActionConfigureShortcuts"/>
<addaction name="mActionCustomization"/>
<addaction name="mActionOptions"/>
<addaction name="mActionAuthentication"/>
<addaction name="mActionSnappingOptions"/>
</widget>
<widget class="QMenu" name="mRasterMenu">
Expand Down Expand Up @@ -2377,15 +2376,6 @@ Acts on currently active editable layer</string>
<string>Add circular string by radius</string>
</property>
</action>
<action name="mActionAuthentication">
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/locked.svg</normaloff>:/images/themes/default/locked.svg</iconset>
</property>
<property name="text">
<string>Authentication...</string>
</property>
</action>
</widget>
<resources>
<include location="../../images/images.qrc"/>
Expand Down

0 comments on commit b6459b0

Please sign in to comment.