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

List:       kde-commits
Subject:    [kdepim/akregator_port] akregator2/src: Allow to specify name of folder
From:       Montel Laurent <montel () kde ! org>
Date:       2012-10-10 6:27:36
Message-ID: 20121010062736.6EABBA605D () git ! kde ! org
[Download RAW message or body]

Git commit 58d6dcfa0ec193c9871be18b8478e8da9b3b2f7b by Montel Laurent.
Committed on 10/10/2012 at 08:27.
Pushed by mlaurent into branch 'akregator_port'.

Allow to specify name of folder

M  +11   -1    akregator2/src/mainwidget.cpp

http://commits.kde.org/kdepim/58d6dcfa0ec193c9871be18b8478e8da9b3b2f7b

diff --git a/akregator2/src/mainwidget.cpp b/akregator2/src/mainwidget.cpp
index e978fdc..5e4718d 100644
--- a/akregator2/src/mainwidget.cpp
+++ b/akregator2/src/mainwidget.cpp
@@ -587,11 +587,21 @@ void Akregator2::MainWidget::addFeed(const QString& url, bool autoExec)
 
 void Akregator2::MainWidget::slotFolderAdd()
 {
+    bool ok;
+    const QString name = KInputDialog::getText( i18n( "Add Folder" ),
+                                                i18n( "Folder name:" ),
+                                                QString(),
+                                                &ok,
+                                                this );
+    if ( !ok )
+    {
+        return;
+    }
     const Akonadi::Collection c = m_selectionController->selectedCollection();
     KRss::FeedCollection fc( c );
     if ( !fc.isFolder() )
         fc = KRss::FeedCollection( fc.parentCollection() );
-    std::auto_ptr<CreateFolderCommand> cmd( new CreateFolderCommand( c, QString(), this ) );
+    std::auto_ptr<CreateFolderCommand> cmd( new CreateFolderCommand( c, name, this ) );
     cmd->setSession( m_session );
     cmd->setFeedListView( m_feedListView );
     d->setUpAndStart( cmd.release() );
[prev in list] [next in list] [prev in thread] [next in thread] 

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