プロジェクト

全般

プロフィール

致命的 #275 » patch-core_addon_contextmenu.rb

Izumi Tsutsui, 2011-08-14 20:34

 
--- core/addon/contextmenu.rb.orig 2011-07-29 18:45:45.000000000 +0000
+++ core/addon/contextmenu.rb
@@ -152,9 +152,10 @@
define_command(:open_link,
:name => 'リンクを開く',
:condition => lambda{ |opt|
+ link_found = false
opt.message.entity.to_a.each {|u|
- return true if u[:face][0,4] == "http"}
- false },
+ link_found = true if u[:face][0,4] == "http"}
+ return link_found },
:exec => lambda{ |opt|
opt.message.entity.to_a.each {|u|
Gtk::openurl(u[:url]) if u[:face][0,4] == "http" }},
    (1-1/1)