Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 310835 Details for
Bug 414693
kde-base/dolphin >=4.8.0 does not select newly created items
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
patch to select newly created items
dolphin-4.8.3_select_newly_created_items.patch (text/plain), 1.51 KB, created by
Franz Trischberger
on 2012-05-05 08:37:05 UTC
(
hide
)
Description:
patch to select newly created items
Filename:
MIME Type:
Creator:
Franz Trischberger
Created:
2012-05-05 08:37:05 UTC
Size:
1.51 KB
patch
obsolete
>--- dolphin/src/views/dolphinview.cpp.org 2012-05-05 08:40:44.717183832 +0200 >+++ dolphin/src/views/dolphinview.cpp 2012-05-05 10:21:25.921639644 +0200 >@@ -1015,23 +1015,22 @@ > void DolphinView::observeCreatedItem(const KUrl& url) > { > m_createdItemUrl = url; >- //connect(m_dirModel, SIGNAL(rowsInserted(QModelIndex,int,int)), >- // this, SLOT(selectAndScrollToCreatedItem())); >+ connect(fileItemModel(), SIGNAL(loadingCompleted()), >+ this, SLOT(selectAndScrollToCreatedItem())); > } > > void DolphinView::selectAndScrollToCreatedItem() > { >- /*const QModelIndex dirIndex = m_viewAccessor.dirModel()->indexForUrl(m_createdItemUrl); >- if (dirIndex.isValid()) { >- const QModelIndex proxyIndex = m_viewAccessor.proxyModel()->mapFromSource(dirIndex); >- QAbstractItemView* view = m_viewAccessor.itemView(); >- if (view) { >- view->setCurrentIndex(proxyIndex); >- } >+ KItemListSelectionManager* selectionManager = m_container->controller()->selectionManager(); >+ const int dirIndex = fileItemModel()->index(m_createdItemUrl); >+ if(dirIndex != -1) { >+ selectionManager->setCurrentItem(dirIndex); >+ } else { >+ selectionManager->setCurrentItem(0); > } > >- disconnect(m_viewAccessor.dirModel(), SIGNAL(rowsInserted(QModelIndex,int,int)), >- this, SLOT(selectAndScrollToCreatedItem()));*/ >+ disconnect(fileItemModel(), SIGNAL(loadingCompleted()), >+ this, SLOT(selectAndScrollToCreatedItem())); > m_createdItemUrl = KUrl(); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 414693
: 310835