diff options
author | Koga Osamu <osak.63@gmail.com> | 2014-12-07 01:15:09 +0900 |
---|---|---|
committer | Koga Osamu <osak.63@gmail.com> | 2014-12-07 01:15:09 +0900 |
commit | 2edf9a92e38a9473aa29251fc73293fb7a05fcd0 (patch) | |
tree | 1568a51f3cd581509af1e6c938d9583411d4f1ad /core | |
parent | 2c409e64022c23f3d1dfa03845daa5f709178f3c (diff) | |
download | mikutter-2edf9a92e38a9473aa29251fc73293fb7a05fcd0.tar.gz |
Postboxが全部消えてしまう問題を修正した。 refs #669
Diffstat (limited to 'core')
-rw-r--r-- | core/mui/gtk_postbox.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/mui/gtk_postbox.rb b/core/mui/gtk_postbox.rb index 29edbb16..d18bed4d 100644 --- a/core/mui/gtk_postbox.rb +++ b/core/mui/gtk_postbox.rb @@ -122,6 +122,10 @@ module Gtk def posting? !!@posting end + # このPostBoxを使って投稿したとき、delegateを作成するように設定されていれば真を返す + def delegatable? + @options[:delegate_other] end + # このPostBoxにフォーカスを合わせる def active get_ancestor(Gtk::Window).set_focus(widget_post) if(get_ancestor(Gtk::Window)) end @@ -227,7 +231,7 @@ module Gtk # フォーカスが外れたことによって削除して良いなら真を返す。 def destructible? if(@options.has_key?(:postboxstorage)) - return false if lonely? or (brothers - [self]).any?{ |w| w.posting? } + return false if lonely? or (brothers - [self]).all?{ |w| !w.delegatable? } post_is_empty? else true end end |