Permalink
Browse files

COMP: qSlicerCoreApplication::defaultExtensionsInstallPath() when

Slicer_BUILD_EXTENSIONMANAGER_SUPPORT is OFF

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21557 3bd1e089-480b-0410-8dfb-8563597acbee
  • Loading branch information...
finetjul committed Dec 31, 2012
1 parent 78d9255 commit 9cbd6907edbd65706dbe89eb8fa5d9a9e6eadae2
Showing with 4 additions and 0 deletions.
  1. +4 −0 Base/QTCore/qSlicerCoreApplication.cxx
@@ -1102,7 +1102,11 @@ QString qSlicerCoreApplication::defaultExtensionsInstallPath() const
{
QSettings* appSettings = this->userSettings();
Q_ASSERT(appSettings);
+#ifdef Slicer_BUILD_EXTENSIONMANAGER_SUPPORT
return QFileInfo(appSettings->fileName()).dir().filePath(Slicer_EXTENSIONS_DIRNAME);
+#else
+ return QString();
+#endif
}
//-----------------------------------------------------------------------------

0 comments on commit 9cbd690

Please sign in to comment.