Fix compilation on Mac.

The methods Utils::UnixUtils::fileBrowser and
Utils::UnixUtils::substituteFileBrowserParameters are both declared when
compiling on MacOS, but their implementation is not compiled into
libutils. So this gives linker errors.

Change-Id: I0befb607dda0a83d681068f8236167ba88918460
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Erik Verbruggen
2013-01-04 10:45:43 +01:00
parent c385034502
commit 38c940636e

View File

@@ -104,6 +104,7 @@ void FileUtils::showInGraphicalShell(QWidget *parent, const QString &pathIn)
<< QLatin1String("tell application \"Finder\" to activate");
QProcess::execute(QLatin1String("/usr/bin/osascript"), scriptArgs);
} else {
#ifndef Q_OS_MAC
// we cannot select a file here, because no file browser really supports it...
const QFileInfo fileInfo(pathIn);
const QString folder = fileInfo.isDir() ? fileInfo.absoluteFilePath() : fileInfo.filePath();
@@ -115,6 +116,7 @@ void FileUtils::showInGraphicalShell(QWidget *parent, const QString &pathIn)
success = success && error.isEmpty();
if (!success)
showGraphicalShellError(parent, app, error);
#endif
}
}