summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominique Leuenberger <dominique@messiah.leuenberger.net>2010-06-06 17:53:46 +0800
committerSam Spilsbury <SmSpillaz@gmail.com>2010-06-06 17:53:46 +0800
commit0365dd8398946ec02d2946464a5607dc49b82908 (patch)
tree9a3b9e192baea3bc0f7d3660101a223514b53caf
parente8214afbb4b642830a981a891c6889655f88dcc1 (diff)
downloadccsm-0365dd8398946ec02d2946464a5607dc49b82908.tar.gz
ccsm-0365dd8398946ec02d2946464a5607dc49b82908.tar.bz2
Force a .profile extension
-rw-r--r--ccm/Pages.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ccm/Pages.py b/ccm/Pages.py
index f9d4167..3689d7c 100644
--- a/ccm/Pages.py
+++ b/ccm/Pages.py
@@ -839,6 +839,8 @@ class ProfileBackendPage(object):
dlg.set_markup(_("Do you want to skip default option values while exporting your profile?"))
ret = dlg.run()
dlg.destroy()
+ if not path.endswith(".profile"):
+ path = "%s.profile" % path
self.Context.Export(path, ret == gtk.RESPONSE_YES)
def ImportProfileDialog (self, main):