summaryrefslogtreecommitdiff
path: root/kberylsettings/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'kberylsettings/main.py')
-rw-r--r--kberylsettings/main.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/kberylsettings/main.py b/kberylsettings/main.py
index f28efe4..f6fe2f3 100644
--- a/kberylsettings/main.py
+++ b/kberylsettings/main.py
@@ -425,6 +425,7 @@ class KBerylSettings(KMainWindow):
filename = KFileDialog.getOpenFileName(self.startDir, '', None,
'Select Profile to Import')
if filename:
+ filename = str(filename)
self.context.Import(filename, True) # overwrite
self.emit(Signals.berylContextChanged, (self.context, ))
self.showMessage('Settings imported.')
@@ -437,7 +438,9 @@ class KBerylSettings(KMainWindow):
filename = KFileDialog.getSaveFileName(self.startDir, '', None,
'Select File to Export Profile')
if filename:
- print 'exporting file...', filename
+ filename = str(filename)
+ self.context.Export(filename)
+ self.showMessage('Settings exported to %s' % filename)
def onMenuBar(self):
""" toggle the visibility of the menu bar and the related menu text