- Fix involved bug that didn't let the system terminate after

calling JumpTo


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1118 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-09-12 21:35:41 +00:00
parent 403a192415
commit c77de95412
3 changed files with 10 additions and 5 deletions

View file

@ -48,9 +48,8 @@ JumpToDialog::JumpToDialog(BaseObjectType* cobject, const RefPtr<Xml>& glade) :
glade->get_widget("Button.Stop", stop_button);
glade->get_widget("ProgressBar", _progress);
// Attach signal handlers for the Stop button
// Attach signal handlers
stop_button->signal_clicked().connect(sigc::mem_fun(*this, &JumpToDialog::_on_stop));
signal_show().connect(sigc::mem_fun(*this, &JumpToDialog::_on_jump));
signal_response().connect(sigc::hide(sigc::mem_fun(*this, &JumpToDialog::hide)));
}
@ -72,8 +71,9 @@ JumpToDialog::get_target_instant() const
void
JumpToDialog::_on_jump()
JumpToDialog::start()
{
show();
_progress->set_fraction(0.0);
assert(_target_instant > 0);