[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [Amarok] 3afdd21: Make collection filter combobox store history of c
From:       Sergey Ivanov <123kash () gmail ! com>
Date:       2010-12-31 17:23:02
Message-ID: 20101231172302.AD97AA6090 () git ! kde ! org
[Download RAW message or body]

commit 3afdd21af910f2a0d9764c65d8ec8589f9330c94
branch master
Author: Sergey Ivanov <123kash@gmail.com>
Date:   Fri Dec 31 20:23:18 2010 +0300

    Make collection filter combobox store history of changes made via Filter Editor dialog.
    BUG: 260583

diff --git a/src/widgets/SearchWidget.cpp b/src/widgets/SearchWidget.cpp
index 137b7fd..d7faa91 100644
--- a/src/widgets/SearchWidget.cpp
+++ b/src/widgets/SearchWidget.cpp
@@ -141,8 +141,10 @@ SearchWidget::slotShowFilterEditor()
 void
 SearchWidget::slotFilterEditorFinished( int result )
 {
-    Q_UNUSED( result )
     m_filterAction->setEnabled( true );
+
+    if( result && !m_sw->currentText().isEmpty() ) // result == QDialog::Accepted
+        addCompletion( m_sw->currentText() );
 }
 
 QToolBar * SearchWidget::toolBar()
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic