Avoid detaching a detached composer

https://bugzilla.gnome.org/show_bug.cgi?id=743433
This commit is contained in:
Robert Schroll 2015-01-23 23:16:13 -05:00
parent d4cc681e91
commit 28a489cf22

View file

@ -1048,6 +1048,8 @@ public class ComposerWidget : Gtk.EventBox {
}
private void on_detach() {
if (state == ComposerState.DETACHED)
return;
Gtk.Widget? focus = container.remove_composer();
ComposerWindow window = new ComposerWindow(this);
if (focus != null) {