File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -554,23 +554,23 @@ def validate_data_paths(self) -> bool:
554554 "3. It doesn't end with slash ('/') or ('\\ ')\n \n "
555555 "{path}"
556556 )
557- if not validate_game_path (self .editFAPath .text ()):
557+ if self . editFAPath . text () and not validate_game_path (self .editFAPath .text ()):
558558 QMessageBox .critical (
559559 self ,
560560 "Invalid Path" ,
561561 suggestion .format (path_type = "Game" , path = self .editFAPath .text ()),
562562 )
563563 self .tabSelection .setCurrentRow (self .Tabs .FORGED_ALLIANCE )
564564 return False
565- if not validate_path (self .editDataPath .text ()):
565+ if self . editDataPath . text () and not validate_path (self .editDataPath .text ()):
566566 QMessageBox .critical (
567567 self ,
568568 "Invalid Path" ,
569569 suggestion .format (path_type = "Data" , path = self .editDataPath .text ()),
570570 )
571571 self .tabSelection .setCurrentRow (self .Tabs .FORGED_ALLIANCE )
572572 return False
573- if not validate_path (self .editVaultPath .text ()):
573+ if self . editVaultPath . text () and not validate_path (self .editVaultPath .text ()):
574574 QMessageBox .critical (
575575 self ,
576576 "Invalid Path" ,
You can’t perform that action at this time.
0 commit comments