mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[auth] Certs manager remembers (in the settings) the last opened tab
This is a minor UX/UI change that remembers the latest opened tab in the certificates manager window
This commit is contained in:
parent
5f11793b17
commit
d6743903e7
@ -27,6 +27,11 @@ class QgsAuthCertEditors : QWidget
|
||||
\param parent Parent widget
|
||||
%End
|
||||
|
||||
~QgsAuthCertEditors( );
|
||||
%Docstring
|
||||
Destructor: store last selected tab
|
||||
%End
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
@ -15,6 +15,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "qgsauthcertificatemanager.h"
|
||||
#include "qgssettings.h"
|
||||
|
||||
#include <QDialog>
|
||||
#include <QDialogButtonBox>
|
||||
@ -24,6 +25,14 @@ QgsAuthCertEditors::QgsAuthCertEditors( QWidget *parent )
|
||||
: QWidget( parent )
|
||||
{
|
||||
setupUi( this );
|
||||
QgsSettings settings;
|
||||
tabWidget->setCurrentIndex( settings.value( QStringLiteral( "AuthCertEditorsSelectedTab" ), 0, QgsSettings::Section::Auth ).toInt() );
|
||||
}
|
||||
|
||||
QgsAuthCertEditors::~QgsAuthCertEditors()
|
||||
{
|
||||
QgsSettings settings;
|
||||
settings.setValue( QStringLiteral( "AuthCertEditorsSelectedTab" ), tabWidget->currentIndex(), QgsSettings::Section::Auth );
|
||||
}
|
||||
|
||||
|
||||
|
@ -40,6 +40,11 @@ class GUI_EXPORT QgsAuthCertEditors : public QWidget, private Ui::QgsAuthCertMan
|
||||
*/
|
||||
explicit QgsAuthCertEditors( QWidget *parent SIP_TRANSFERTHIS = 0 );
|
||||
|
||||
/**
|
||||
* Destructor: store last selected tab
|
||||
*/
|
||||
~QgsAuthCertEditors( );
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user