added config initialization after Import
authorMax Usachev <maxusachev@gmail.com>
Tue, 15 Jun 2010 10:41:28 +0000 (13:41 +0300)
committerMax Usachev <maxusachev@gmail.com>
Tue, 15 Jun 2010 10:41:28 +0000 (13:41 +0300)
controller.py
ui/hildon_ui.py

index a928930..91a7a6c 100644 (file)
@@ -89,6 +89,8 @@ class MeabookController:
             self.view.create_progress_dialog(_('Importing...'))
             #FIXME: implement update_fraction
             parser.parse()
+            self.config.set_fields(self.model.get_fields())
+            self.config.set_order(self.model.get_fields())
         except:
             self.view.create_information_dialog(_('Import error'), \
                 _('Unsupported file format!'))
index d33faad..270c959 100644 (file)
@@ -316,7 +316,7 @@ class ConfigurationDialog:
             button = create_button(' '.join([_('Position'), str(index)]), \
                 _(field))
             button.connect('clicked', show_fields_chooser)
-            vbox.pack_start(button)
+            vbox.pack_start(button, expand=False)
 
         self.pannable_area.add_with_viewport(vbox)
         self.pannable_area.show_all()