From d30c045dac7471f367a6ed4623865eb15bf43a91 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 14 Apr 2009 00:14:48 +0200 Subject: don't show failure msgbox twice --- src/pavucontrol.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/pavucontrol.cc b/src/pavucontrol.cc index 3ec70c3..faf7c89 100644 --- a/src/pavucontrol.cc +++ b/src/pavucontrol.cc @@ -481,10 +481,8 @@ int main(int argc, char *argv[]) { pa_context_set_state_callback(context, context_state_callback, mainWindow); - if (pa_context_connect(context, NULL, (pa_context_flags_t) 0, NULL) < 0) { - show_error(_("Connection failed")); + if (pa_context_connect(context, NULL, (pa_context_flags_t) 0, NULL) < 0) goto finish; - } Gtk::Main::run(*mainWindow); delete mainWindow; -- cgit