[meld/ui-next] ui.filechooser: Fix encoding selector creation on widget creation



commit 78f1ad466f70c13b62ef68cea8747ccc90620de3
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sat Mar 9 07:56:13 2019 +1000

    ui.filechooser: Fix encoding selector creation on widget creation
    
    If we initialised the file chooser with an action but didn't change it,
    the encoding selector was never created.

 meld/ui/filechooser.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/meld/ui/filechooser.py b/meld/ui/filechooser.py
index 6fcc1501..01eba394 100644
--- a/meld/ui/filechooser.py
+++ b/meld/ui/filechooser.py
@@ -44,6 +44,7 @@ class MeldFileChooserDialog(Gtk.FileChooserDialog):
             self.add_button(Gtk.STOCK_OPEN, Gtk.ResponseType.ACCEPT)
 
         self.encoding_store = Gtk.ListStore(str, str)
+        self.action_changed_cb()
         self.connect("notify::action", self.action_changed_cb)
 
         # We only have sufficient Gio support for remote operations in


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]