From 39e0708b3bea597889e122a7679a375cb9ff794f Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Sat, 14 Jan 2017 21:41:18 -0500 Subject: [PATCH] Correcting missing icons when running release from build directory --- src/core/FilePath.cpp | 3 +++ src/gui/SearchWidget.ui | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/core/FilePath.cpp b/src/core/FilePath.cpp index 24c9e3528..0506e3ab7 100644 --- a/src/core/FilePath.cpp +++ b/src/core/FilePath.cpp @@ -211,6 +211,9 @@ FilePath::FilePath() else if (testSetDir(appDirPath + "/share")) { } #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()) { qWarning("FilePath::DataPath: can't find data dir"); diff --git a/src/gui/SearchWidget.ui b/src/gui/SearchWidget.ui index 281d5f85a..a75642e13 100644 --- a/src/gui/SearchWidget.ui +++ b/src/gui/SearchWidget.ui @@ -34,6 +34,9 @@ Qt::ClickFocus + + Search + Qt::ToolButtonIconOnly