metasm/gui/qt.rb in metasm-1.0.2 vs metasm/gui/qt.rb in metasm-1.0.3

- old
+ new

@@ -49,11 +49,11 @@ ibox end @@dialogfilefolder = nil - # asks to chose a file to open, yields filename + # asks to choose a file to open, yields filename # args: title, :path => path def openfile(title, opts={}) f = Qt::FileDialog.get_open_file_name(nil, title, @@dialogfilefolder) if f and f != '' @@dialogfilefolder = File.dirname(f) @@ -178,10 +178,10 @@ VolumeDown VolumeMute VolumeUp BassBoost BassUp BassDown TrebleUp TrebleDown MediaPlay MediaStop MediaPrevious MediaNext MediaRecord HomePage Favorites Search Standby OpenUrl LaunchMail LaunchMedia Launch0 Launch1 Launch2 Launch3 Launch4 Launch5 Launch6 Launch7 Launch8 Launch9 LaunchA LaunchB LaunchC LaunchD LaunchE LaunchF MediaLast unknown Call Context1 Context2 Context3 Context4 Flip Hangup No Select Yes Execute Printer Play Sleep Zoom Cancel ].inject({}) { |h, cst| - v = Qt.const_get("Key_#{cst}").to_i # AONETUHANOTEUHATNOHEU Qt::Enum != Fixnum + v = Qt.const_get("Key_#{cst}").to_i # AONETUHANOTEUHATNOHEU Qt::Enum != Integer key = cst.downcase.to_sym key = { :pageup => :pgup, :pagedown => :pgdown, :escape => :esc, :return => :enter }.fetch(key, key) h.update v => key }