Skip to content

Commit

Permalink
Fix Ctrl-R while in debug mode not restarting in debug mode properly
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Nov 20, 2014
1 parent 957ca64 commit 38fe10d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calibre/gui2/main.py
Expand Up @@ -344,7 +344,7 @@ def run_gui(opts, args, listener, app, gui_debug=None):
wizard().exec_()
if getattr(runner.main, 'restart_after_quit', False):
e = sys.executable if getattr(sys, 'frozen', False) else sys.argv[0]
if getattr(runner.main, 'debug_on_restart', False):
if getattr(runner.main, 'debug_on_restart', False) or gui_debug is not None:
run_in_debug_mode()
else:
import subprocess
Expand Down

0 comments on commit 38fe10d

Please sign in to comment.