commit | f5c6726e5c9fc0077c3c6d682e5453372942a21e | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Tue Mar 13 08:20:41 2012 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Mar 13 08:20:41 2012 +0100 |
tree | 0df2284c4d23c85c19b974d0b70b1a11a178ae03 | |
parent | 2156fcd498b9ecf7aebfc4ff56d00003faf672d1 [diff] [blame] |
gfio: allow close with ctrl-w if there are no clients Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/gfio.c b/gfio.c index 1251292..ec03344 100644 --- a/gfio.c +++ b/gfio.c
@@ -2111,7 +2111,12 @@ return; } - show_info_dialog(ui, "Error", "The main page view cannot be closed\n"); + if (!flist_empty(&ui->list)) { + show_info_dialog(ui, "Error", "The main page view cannot be closed\n"); + return; + } + + gtk_main_quit(); } static void file_open(GtkWidget *w, gpointer data)