Skip to content

Commit

Permalink
Fix an esoteric bug
Browse files Browse the repository at this point in the history
- Open project directory action tried to open a .bat file if the project folder name matched a .bat file name
  • Loading branch information
ptsavol committed Dec 20, 2024
1 parent 16db303 commit ffa76d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spinetoolbox/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def open_url(url):
Returns:
bool: True if successful, False otherwise
"""
return QDesktopServices.openUrl(QUrl(url, QUrl.TolerantMode))
return QDesktopServices.openUrl(QUrl(url, QUrl.ParsingMode.TolerantMode))


def set_taskbar_icon():
Expand Down
2 changes: 1 addition & 1 deletion spinetoolbox/ui_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2241,7 +2241,7 @@ def _open_project_directory(self, _):
if self._project is None:
self.msg.emit("Please open or create a project first")
return
open_url("file:///" + self._project.project_dir)
open_url("file:///" + self._project.project_dir + "/")

@Slot(bool)
def _open_project_item_directory(self, _):
Expand Down

0 comments on commit ffa76d0

Please sign in to comment.