Skip to content

Commit

Permalink
Merge pull request spyder-ide#3228 from impact27/patch-1
Browse files Browse the repository at this point in the history
Fix a bug preventing Spyder to open external file In Mac application
  • Loading branch information
ccordoba12 authored Jun 16, 2016
2 parents f1ac45e + 662796c commit ecba1b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spyderlib/utils/qthelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ def get_image_label(name, default="not_found.png"):

class MacApplication(QApplication):
"""Subclass to be able to open external files with our Mac app"""
open_external_file = Signal(str)
sig_open_external_file = Signal(str)

def __init__(self, *args):
QApplication.__init__(self, *args)

def event(self, event):
if event.type() == QEvent.FileOpen:
fname = str(event.file())
self.open_external_file.emit(fname)
self.sig_open_external_file.emit(fname)
return QApplication.event(self, event)


Expand Down

0 comments on commit ecba1b3

Please sign in to comment.