Commit 4dcbd3da authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

quickopen: update upon list mode change

parent b617009c
...@@ -273,7 +273,7 @@ KateQuickOpen::KateQuickOpen(KateMainWindow *mainWindow) ...@@ -273,7 +273,7 @@ KateQuickOpen::KateQuickOpen(KateMainWindow *mainWindow)
slotListModeChanged(m_inputLine->listMode()); slotListModeChanged(m_inputLine->listMode());
// fill stuff // fill stuff
update(mainWindow); update();
} }
KateQuickOpen::~KateQuickOpen() KateQuickOpen::~KateQuickOpen()
...@@ -321,9 +321,9 @@ void KateQuickOpen::reselectFirst() ...@@ -321,9 +321,9 @@ void KateQuickOpen::reselectFirst()
m_listView->setCurrentIndex(index); m_listView->setCurrentIndex(index);
} }
void KateQuickOpen::update(KateMainWindow *mainWindow) void KateQuickOpen::update()
{ {
m_base_model->refresh(mainWindow); m_base_model->refresh(m_mainWindow);
reselectFirst(); reselectFirst();
updateViewGeometry(); updateViewGeometry();
...@@ -388,6 +388,8 @@ void KateQuickOpen::slotReturnPressed() ...@@ -388,6 +388,8 @@ void KateQuickOpen::slotReturnPressed()
void KateQuickOpen::slotListModeChanged(KateQuickOpenModel::List mode) void KateQuickOpen::slotListModeChanged(KateQuickOpenModel::List mode)
{ {
m_base_model->setListMode(mode); m_base_model->setListMode(mode);
// this changes things again, needs refresh, let's go all the way
update();
} }
void KateQuickOpen::updateViewGeometry() void KateQuickOpen::updateViewGeometry()
......
...@@ -36,7 +36,7 @@ public: ...@@ -36,7 +36,7 @@ public:
* update state * update state
* will fill model with current open documents, project documents, ... * will fill model with current open documents, project documents, ...
*/ */
void update(KateMainWindow *mainWindow); void update();
void updateViewGeometry(); void updateViewGeometry();
protected: protected:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment