Skip to content

Commit

Permalink
when setting up a configuration for a specific ili2db command, then s…
Browse files Browse the repository at this point in the history
…et the user account name as pg name in case there is no other username passed (from config, or auth or servicefile)
  • Loading branch information
signedav committed Oct 29, 2024
1 parent 70019d3 commit 8ec5d4e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions QgisModelBaker/gui/panel/session_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ def __init__(

# set up the values
self.configuration = general_configuration
if self.configuration.tool & DbIliMode.pg:
# on pg we should consider the user account name as fallback
if (
not self.configuration.db_use_super_login
and not self.configuration.dbusr
):
self.configuration.dbusr = QgsApplication.userLoginName()
if self.db_action_type == DbActionType.GENERATE:
self.configuration.ilifile = ""
if os.path.isfile(self.file):
Expand Down

0 comments on commit 8ec5d4e

Please sign in to comment.