projects
/
situare
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b545ab8
)
Fixed again a bug when "No search results" text was incorrectly shown.
author
Jussi Laitinen
<jupe@l3l7588.ixonos.local>
Wed, 8 Sep 2010 05:08:18 +0000
(08:08 +0300)
committer
Jussi Laitinen
<jupe@l3l7588.ixonos.local>
Wed, 8 Sep 2010 05:08:18 +0000
(08:08 +0300)
src/ui/locationsearchpanel.cpp
patch
|
blob
|
history
diff --git
a/src/ui/locationsearchpanel.cpp
b/src/ui/locationsearchpanel.cpp
index
2afe5a9
..
87bcf82
100644
(file)
--- a/
src/ui/locationsearchpanel.cpp
+++ b/
src/ui/locationsearchpanel.cpp
@@
-130,6
+130,7
@@
LocationSearchPanel::LocationSearchPanel(QWidget *parent)
readSettings();
showSearchHistoryListView();
+ showEmptyPanel(true);
}
LocationSearchPanel::~LocationSearchPanel()
@@
-161,6
+162,8
@@
void LocationSearchPanel::prependSearchHistory(QString searchString, QDateTime d
const int SEARCH_HISTORY_LIMIT = 10;
static int counter = 0;
+ showSearchHistoryListView();
+
if (m_searchHistoryListView->count() >= SEARCH_HISTORY_LIMIT)
m_searchHistoryListView->removeLastItem();