From 48676b42611b981c1845c7426f22422b9d94cb13 Mon Sep 17 00:00:00 2001 From: albert-github Date: Fri, 6 Sep 2013 20:33:04 +0200 Subject: Bug 707554 - When I use @INCLUDE DoxyWizard is closed Current directory was not changed at the right time so the include files could not be found in the "current" directory (i.e. the directory where the Doxyfile resides too, as this directory is shown as the current directory in the doxywizard). This is also important when the doxywizard is started from a shortcut. --- addon/doxywizard/doxywizard.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/addon/doxywizard/doxywizard.cpp b/addon/doxywizard/doxywizard.cpp index 11bd8f2..ce764e0 100644 --- a/addon/doxywizard/doxywizard.cpp +++ b/addon/doxywizard/doxywizard.cpp @@ -224,9 +224,13 @@ void MainWindow::updateConfigFileName(const QString &fileName) void MainWindow::loadConfigFromFile(const QString & fileName) { - m_expert->loadConfig(fileName); - m_wizard->refresh(); + // save full path info of original file + QString absFileName = QFileInfo(fileName).absoluteFilePath(); + // updates the current directory updateConfigFileName(fileName); + // open the specified configuration file + m_expert->loadConfig(absFileName); + m_wizard->refresh(); updateLaunchButtonState(); m_modified = false; updateTitle(); -- cgit v0.12