Correcting missing icons when running release from build directory

This commit is contained in:
Jonathan White 2017-01-14 21:41:18 -05:00
parent 01464a7860
commit 39e0708b3b
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01
2 changed files with 6 additions and 0 deletions

View File

@ -211,6 +211,9 @@ FilePath::FilePath()
else if (testSetDir(appDirPath + "/share")) { else if (testSetDir(appDirPath + "/share")) {
} }
#endif #endif
// Last ditch test when running in the build directory (mainly for travis tests)
else if (testSetDir(QString(KEEPASSX_SOURCE_DIR) + "/share")) {
}
if (m_dataPath.isEmpty()) { if (m_dataPath.isEmpty()) {
qWarning("FilePath::DataPath: can't find data dir"); qWarning("FilePath::DataPath: can't find data dir");

View File

@ -34,6 +34,9 @@
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::ClickFocus</enum> <enum>Qt::ClickFocus</enum>
</property> </property>
<property name="text">
<string>Search</string>
</property>
<property name="toolButtonStyle"> <property name="toolButtonStyle">
<enum>Qt::ToolButtonIconOnly</enum> <enum>Qt::ToolButtonIconOnly</enum>
</property> </property>