From e9d21baaf5aa0f6fbc6979c99cdbf537e51d48a3 Mon Sep 17 00:00:00 2001 From: Mark Spicer Date: Thu, 23 Apr 2015 23:33:01 -0400 Subject: [PATCH] Fixed recipe import issues --- roastero/modules/gui/MainWindow.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roastero/modules/gui/MainWindow.py b/roastero/modules/gui/MainWindow.py index f4d98df..b33048c 100644 --- a/roastero/modules/gui/MainWindow.py +++ b/roastero/modules/gui/MainWindow.py @@ -160,9 +160,9 @@ def change_blocked_button(self, index): def import_recipe_file(self): try: - recipeFile = QFileDialog.getOpenFileName(self, 'Select Recipe','', - '/', 'Recipes (*.json);;All Files (*)') - copy2(recipeFile[0], os.path.expanduser('~/Documents/Roastero/recipes/')) + recipeFile = QFileDialog.getOpenFileName(self, 'Select Recipe', + os.path.expanduser('~/'), 'Recipes (*.json);;All Files (*)') + copy2(recipeFile[0], os.path.expanduser('~/Documents/Roastero/recipes/local')) except FileNotFoundError: # Occurs if file browser is canceled pass