4e16f39cae
- Fix fritzing-fix-app-folder.patch - Apply patch to debian packages too - put fritzing icon in correct directory for debian packages OBS-URL: https://build.opensuse.org/request/show/77426 OBS-URL: https://build.opensuse.org/package/show/Education/fritzing?expand=0&rev=4
22 lines
758 B
Diff
22 lines
758 B
Diff
diff -Nurd fritzing.2011.07.11.source.orig//src/utils/folderutils.cpp fritzing.2011.07.11.source/src/utils/folderutils.cpp
|
|
--- fritzing.2011.07.11.source.orig//src/utils/folderutils.cpp 2011-07-11 17:50:17.000000000 +0200
|
|
+++ fritzing.2011.07.11.source/src/utils/folderutils.cpp 2011-07-29 11:06:55.000000000 +0200
|
|
@@ -154,11 +154,14 @@
|
|
}
|
|
|
|
const QString FolderUtils::applicationDirPath() {
|
|
- if (m_appPath.isEmpty()) {
|
|
- return QCoreApplication::applicationDirPath();
|
|
+ if (!m_appPath.isEmpty()) {
|
|
+ return m_appPath;
|
|
}
|
|
|
|
- return m_appPath;
|
|
+ QDir dir("/usr/share/fritzing");
|
|
+ if (dir.exists()) return dir.path();
|
|
+
|
|
+ return QCoreApplication::applicationDirPath();
|
|
}
|
|
|
|
bool FolderUtils::setApplicationPath2(const QString & path)
|