diff --git a/ApplicationLibCode/Commands/OsduImportCommands/RiuWellImportWizard.cpp b/ApplicationLibCode/Commands/OsduImportCommands/RiuWellImportWizard.cpp index d75b635328..a2752a5de6 100644 --- a/ApplicationLibCode/Commands/OsduImportCommands/RiuWellImportWizard.cpp +++ b/ApplicationLibCode/Commands/OsduImportCommands/RiuWellImportWizard.cpp @@ -185,8 +185,8 @@ AuthenticationPage::AuthenticationPage( RiaOsduConnector* osduConnector, QWidget QVBoxLayout* layout = new QVBoxLayout; - QLabel* label = new QLabel( "Checking OSDU connection..." ); - layout->addWidget( label ); + m_connectionLabel = new QLabel( "Checking OSDU connection. You might need to login." ); + layout->addWidget( m_connectionLabel ); QFormLayout* formLayout = new QFormLayout; layout->addLayout( formLayout ); @@ -226,6 +226,7 @@ bool AuthenticationPage::isComplete() const //-------------------------------------------------------------------------------------------------- void AuthenticationPage::accessOk() { + m_connectionLabel->setText( "Connection to OSDU: OK." ); m_accessOk = true; emit( completeChanged() ); } diff --git a/ApplicationLibCode/Commands/OsduImportCommands/RiuWellImportWizard.h b/ApplicationLibCode/Commands/OsduImportCommands/RiuWellImportWizard.h index d6d2ff306d..2dd3a44aac 100644 --- a/ApplicationLibCode/Commands/OsduImportCommands/RiuWellImportWizard.h +++ b/ApplicationLibCode/Commands/OsduImportCommands/RiuWellImportWizard.h @@ -113,9 +113,9 @@ public: void setOsduFields( const std::vector& osduFields ) { - beginInsertRows( QModelIndex(), 0, static_cast( osduFields.size() ) ); + beginResetModel(); m_osduFields = osduFields; - endInsertRows(); + endResetModel(); } private: @@ -193,6 +193,7 @@ public: void setOsduWellbores( const QString& wellId, const std::vector& osduWellbores ) { + beginResetModel(); m_map[wellId] = osduWellbores; m_osduWellbores.clear(); for ( auto [name, values] : m_map ) @@ -201,8 +202,7 @@ public: m_osduWellbores.push_back( v ); } - beginInsertRows( QModelIndex(), 0, static_cast( m_osduWellbores.size() ) ); - endInsertRows(); + endResetModel(); } private: @@ -227,7 +227,8 @@ private slots: void accessOk(); private: - bool m_accessOk; + QLabel* m_connectionLabel; + bool m_accessOk; }; //--------------------------------------------------------------------------------------------------