Browse Source

Disabling tab stop on an empty session import list obscured by a message panel

Source commit: 2cecccf0fc3f4c2d07b04b3018555287b3cedbac
Martin Prikryl 1 year ago
parent
commit
8ea2a7eecb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      source/forms/ImportSessions.cpp

+ 2 - 0
source/forms/ImportSessions.cpp

@@ -191,11 +191,13 @@ void __fastcall TImportSessionsDialog::LoadSessions()
   if ((SessionList->Count > 0) || Error.IsEmpty())
   if ((SessionList->Count > 0) || Error.IsEmpty())
   {
   {
     ErrorPanel->Visible = false;
     ErrorPanel->Visible = false;
+    SessionListView2->TabStop = true;
   }
   }
   else
   else
   {
   {
     ErrorLabel->Caption = Error;
     ErrorLabel->Caption = Error;
     ErrorPanel->Visible = true;
     ErrorPanel->Visible = true;
+    SessionListView2->TabStop = false;
   }
   }
 
 
   UpdateControls();
   UpdateControls();