From b2c20164e33a20c600a60dc1f21464c6a13e4afe Mon Sep 17 00:00:00 2001
From: Robert Jonsson <spamatica@gmail.com>
Date: Mon, 12 Jul 2010 22:52:05 +0000
Subject: fixed plugin RemoveShortEvents

---
 muse/ChangeLog                       | 1 +
 muse/share/scripts/RemoveShortEvents | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/muse/ChangeLog b/muse/ChangeLog
index 13785dcd..d65eb8da 100644
--- a/muse/ChangeLog
+++ b/muse/ChangeLog
@@ -1,6 +1,7 @@
 12.07.2010
       * Fixed: When wave files were edited allocation was on stack which caused crashes for larger selections, now done on heap (rj)
       * Added: Print svn version in -v and About box. (rj)
+      * Fixed: Bug with RemoveShortEvents plugin script, would not remove anything due to index error (rj)
 10.07.2010
       * Added: Insert measure, inserts empty space and moves everything after playpointer to the right and
                Part-insert, pastes parts and moves everything after the paste point to the right
diff --git a/muse/share/scripts/RemoveShortEvents b/muse/share/scripts/RemoveShortEvents
index ce578fb0..cc6735b2 100755
--- a/muse/share/scripts/RemoveShortEvents
+++ b/muse/share/scripts/RemoveShortEvents
@@ -43,7 +43,7 @@ class RemoveShortEvents(QtGui.QWidget):
         inputEvents = testFile.readlines()
         testFile.close()
         
-        beatDiv = int(self.timeEdit.itemData(self.timeEdit.currentIndex()))
+        beatDiv = int(self.timeEdit.itemData(self.timeEdit.currentIndex()).toInt()[0])
         minSize=0 # fill in when we get the beat size value
         outputEvents=[]
 
-- 
cgit v1.2.3