Fix some coverity issues

This commit is contained in:
heckflosse
2017-06-14 13:50:46 +02:00
parent 2fcb7d9665
commit 18076077c0
8 changed files with 15 additions and 52 deletions

View File

@@ -255,29 +255,6 @@ Splash::Splash (Gtk::Window& parent) : Gtk::Dialog(M("GENERAL_ABOUT"), parent, t
set_keep_above (true);
}
Splash::Splash (Gtk::Window& parent, int maxtime) : Gtk::Dialog(M("GENERAL_ABOUT"), parent, true)
{
splashImage = Gtk::manage(new SplashImage ());
get_content_area()->pack_start (*splashImage);
splashImage->show ();
if (maxtime > 0) {
Glib::signal_timeout().connect (sigc::mem_fun(*this, &Splash::on_timer), maxtime);
}
set_position (Gtk::WIN_POS_CENTER);
if (maxtime > 0) {
set_decorated (false);
}
add_events(Gdk::BUTTON_RELEASE_MASK);
set_resizable (false);
set_keep_above (true);
}
bool Splash::on_timer ()
{