|
|
@ -28,6 +28,10 @@
|
|
|
|
#include <QtGui/QWidget>
|
|
|
|
#include <QtGui/QWidget>
|
|
|
|
#include <QtGui/QFileDialog>
|
|
|
|
#include <QtGui/QFileDialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if !defined NL_OS_WINDOWS
|
|
|
|
|
|
|
|
#include "core_config.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
namespace Core
|
|
|
|
namespace Core
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
@ -118,6 +122,10 @@ void SearchPathsSettingsPage::applySearchPaths()
|
|
|
|
for (int i = 1; i < remapExt.size(); i += 2)
|
|
|
|
for (int i = 1; i < remapExt.size(); i += 2)
|
|
|
|
NLMISC::CPath::remapExtension(remapExt.at(i - 1).toUtf8().constData(), remapExt.at(i).toUtf8().constData(), true);
|
|
|
|
NLMISC::CPath::remapExtension(remapExt.at(i - 1).toUtf8().constData(), remapExt.at(i).toUtf8().constData(), true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if !defined NL_OS_WINDOWS
|
|
|
|
|
|
|
|
NLMISC::CPath::addSearchPath(std::string(STUDIO_DATA_DIR), false, false);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
Q_FOREACH(QString path, paths)
|
|
|
|
Q_FOREACH(QString path, paths)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
NLMISC::CPath::addSearchPath(path.toUtf8().constData(), m_recurse, false);
|
|
|
|
NLMISC::CPath::addSearchPath(path.toUtf8().constData(), m_recurse, false);
|
|
|
|