summaryrefslogtreecommitdiffstats
path: root/addon/doxywizard
diff options
context:
space:
mode:
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);
}