[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/akregator/src
From: Frank Osterfeld <frank.osterfeld () kdemail ! net>
Date: 2010-02-07 12:02:47
Message-ID: 1265544167.961846.9758.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1086452 by osterfeld:
forwardport
SVN commit 1086319 by osterfeld:
don't crash when no selection model exists (as there is no feed
selected)
BUG:224555
M +4 -0 selectioncontroller.cpp
--- trunk/KDE/kdepim/akregator/src/selectioncontroller.cpp #1086451:1086452
@@ -143,11 +143,15 @@
Akregator::Article Akregator::SelectionController::currentArticle() const
{
+ if ( !m_articleLister || !m_articleLister->articleSelectionModel() )
+ return Article();
return ::articleForIndex( \
m_articleLister->articleSelectionModel()->currentIndex(), m_feedList.get() ); }
QList<Akregator::Article> Akregator::SelectionController::selectedArticles() const
{
+ if ( !m_articleLister || !m_articleLister->articleSelectionModel() )
+ return QList<Akregator::Article>();
return ::articlesForIndexes( \
m_articleLister->articleSelectionModel()->selectedRows(), m_feedList.get() ); }
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic