aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/mui/gtk_postbox.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/mui/gtk_postbox.rb b/core/mui/gtk_postbox.rb
index 5e1129c1..efb4ce6c 100644
--- a/core/mui/gtk_postbox.rb
+++ b/core/mui/gtk_postbox.rb
@@ -257,8 +257,7 @@ module Gtk
# フォーカスが外れたことによって削除して良いなら真を返す。
def destructible?
if(@options.has_key?(:postboxstorage))
- return false if lonely? or (brothers - [self]).all?{ |w| !w.delegatable? }
- post_is_empty?
+ !lonely? && (brothers - [self]).any? { |w| w.delegatable? }
else
true end end