mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
#12091 Show dialog with cancel button when requesting authorization tokens
This commit is contained in:
1 parent
08c207e556
commit
938222f878
6 files changed
+124
-10
No files matched your search
@@ -108,7 +108,11 @@ void RiuWellImportWizard::downloadWellPaths( const QString& wellboreId )
|
||||
void RiuWellImportWizard::resetAuthenticationCount()
|
||||
{
|
||||
m_firstTimeRequestingAuthentication = true;
|
||||
m_osduConnector->requestToken();
|
||||
|
||||
if ( !m_osduConnector->isGranted() )
|
||||
{
|
||||
m_osduConnector->requestTokenWithCancelButton();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -187,6 +191,8 @@ AuthenticationPage::AuthenticationPage( RiaOsduConnector* osduConnector, QWidget
|
||||
setLayout( layout );
|
||||
|
||||
connect( osduConnector, SIGNAL( tokenReady( const QString& ) ), this, SLOT( accessOk() ) );
|
||||
|
||||
if ( osduConnector->isGranted() ) accessOk();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user