Skip to content

Commit 265ce36

Browse files
committedFeb 28, 2022
Fixed path when loading and saving session. this refs #101
1 parent 6abf038 commit 265ce36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/iBeatles/session/session_handler.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def save_to_file(self, config_file_name=None):
245245
if config_file_name is None:
246246
config_file_name = QFileDialog.getSaveFileName(self.parent,
247247
caption="Select session file name ...",
248-
directory=self.parent.homepath,
248+
directory=self.parent.default_path[DataType.sample],
249249
filter="session (*.json)",
250250
initialFilter="session")
251251

@@ -270,7 +270,7 @@ def load_from_file(self, config_file_name=None):
270270

271271
if config_file_name is None:
272272
config_file_name = QFileDialog.getOpenFileName(self.parent,
273-
directory=self.parent.homepath,
273+
directory=self.parent.default_path[DataType.sample],
274274
caption="Select session file ...",
275275
filter="session (*.json)",
276276
initialFilter="session")

0 commit comments

Comments
 (0)
Please sign in to comment.