summaryrefslogtreecommitdiffstats
path: root/addon/doxywizard
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2002-09-27 17:06:31 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2002-09-27 17:06:31 (GMT)
commit858708350c055a757c1e34461a06c5cf2277f2db (patch)
treef0751a83dd63c0dc8f76a3cd2044acf074e860a2 /addon/doxywizard
parent047ff890c6a53d02ffc96712f8e6dac03fdf3e04 (diff)
downloadDoxygen-858708350c055a757c1e34461a06c5cf2277f2db.zip
Doxygen-858708350c055a757c1e34461a06c5cf2277f2db.tar.gz
Doxygen-858708350c055a757c1e34461a06c5cf2277f2db.tar.bz2
Release-1.2.18-20020927
Diffstat (limited to 'addon/doxywizard')
-rw-r--r--addon/doxywizard/doxywizard.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/addon/doxywizard/doxywizard.cpp b/addon/doxywizard/doxywizard.cpp
index 84f9f08..4c6b91e 100644
--- a/addon/doxywizard/doxywizard.cpp
+++ b/addon/doxywizard/doxywizard.cpp
@@ -266,11 +266,18 @@ void Wizard::saveAsFile()
void Wizard::runDoxygen()
{
saveFile();
- QString s = "doxygen " + configFileName;
+ QString orgDir = QDir::currentDirPath();
+ QFileInfo fi(configFileName);
+ // cd to the config dir
+ QDir::setCurrent(fi.dirPath());
+ // run doxygen on the config file
+ QString s = "doxygen \"" + fi.fileName() + "\"";
+ // actually run the exe
system((const char*)s);
statusBar()->message("doxygen completed: "+ configFileName, messageTimeout );
hasChanged = FALSE;
refreshCaption();
+ QDir::setCurrent(orgDir);
}