プロジェクト

全般

プロフィール

致命的 #275 » patch-core_addon_contextmenu.rb

Izumi Tsutsui, 2011-08-14 20:34

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