Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /plugins/macro.py [82ddff] .. [de6804] Maximize Restore

  Switch to side-by-side view

--- a/plugins/macro.py
+++ b/plugins/macro.py
@@ -191,7 +191,7 @@
         if not stc:
             stc = self.root.getNumWin(None)[1]
         
-        if not hasattr(stc, 'lines'):
+        if not hasattr(stc, 'recording'):
             return
         
         if stc.recording:
@@ -303,7 +303,7 @@
     
     def OnRec(self, e):
         num, stc = self.root.getNumWin(None)
-        if not hasattr(stc, 'lines'):
+        if not hasattr(stc, 'recording'):
             return
         stc.MacroToggle(None)
         self.update_button()
@@ -350,11 +350,11 @@
         
         stc = self.root.getNumWin(None)[1]
         
+        if not hasattr(stc, 'recording'):
+            return
+        
         if stc.recording:
             self.root.dialog("You must stop recording a macro\nin order to play a macro.", 'Sorry')
-            return
-        
-        if not hasattr(stc, 'lines'):
             return
         
         try: