hide dialogs after setting new disklabel

* src/Win_GParted.cc: hide dialogs after setting new disklabel
This commit is contained in:
Bart Hakvoort 2006-04-15 12:42:57 +00:00
parent 2c3ce61275
commit 9756799d47
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-04-15 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/Win_GParted.cc: hide dialogs after setting new disklabel
2006-04-15 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/GParted_Core.cc: creating a new partition on a BSD partitiontable

View File

@ -1656,7 +1656,7 @@ void Win_GParted::activate_disklabel()
m_dialog .set_secondary_text( String::ucompose( _("This operation will destroy all data on %1!"),
devices[ current_device ] .get_path() ) ) ;
m_dialog .add_button( _("Create"), Gtk::RESPONSE_OK );
m_dialog .add_button( _("Create"), Gtk::RESPONSE_OK ) ;
if ( m_dialog .run() == Gtk::RESPONSE_OK &&
! gparted_core .Set_Disklabel( devices[ current_device ] .get_path(), dialog .Get_Disklabel() ) )
@ -1670,6 +1670,9 @@ void Win_GParted::activate_disklabel()
dialog .run() ;
}
m_dialog .hide() ;
dialog .hide() ;
menu_gparted_refresh_devices() ;
}
}