Mercurial > hg > easyhg
comparison hgrunner.cpp @ 240:53ad43d5a463
* Small tidy
author | Chris Cannam |
---|---|
date | Mon, 10 Jan 2011 15:23:53 +0000 |
parents | 661f5808aa0a |
children | 8fd71f570884 |
comparison
equal
deleted
inserted
replaced
239:661f5808aa0a | 240:53ad43d5a463 |
---|---|
16 */ | 16 */ |
17 | 17 |
18 #include "hgrunner.h" | 18 #include "hgrunner.h" |
19 #include "common.h" | 19 #include "common.h" |
20 #include "debug.h" | 20 #include "debug.h" |
21 #include "settingsdialog.h" | |
21 | 22 |
22 #include <QPushButton> | 23 #include <QPushButton> |
23 #include <QListWidget> | 24 #include <QListWidget> |
24 #include <QDialog> | 25 #include <QDialog> |
25 #include <QLabel> | 26 #include <QLabel> |
69 } | 70 } |
70 } | 71 } |
71 | 72 |
72 QString HgRunner::getUnbundledFileName() | 73 QString HgRunner::getUnbundledFileName() |
73 { | 74 { |
74 QString home = QDir::homePath(); | 75 return SettingsDialog::getUnbundledExtensionFileName(); |
75 QString target = QString("%1/.easyhg").arg(home); | |
76 QString extpath = QString("%1/easyhg.py").arg(target); | |
77 return extpath; | |
78 } | 76 } |
79 | 77 |
80 QString HgRunner::unbundleExtension() | 78 QString HgRunner::unbundleExtension() |
81 { | 79 { |
82 // Pull out the bundled Python file into a temporary file, and | 80 // Pull out the bundled Python file into a temporary file, and |