Summary: | wrong focus after renaming of image | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Mikolaj Machowski <mikmach> |
Component: | AdvancedRename-dialog | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 7.5.0 | |
Sentry Crash Report: |
Description
Mikolaj Machowski
2005-03-23 23:15:03 UTC
CVS commit by pahlibar: reselect the renamed item to make user life simpler BUGS: 102322 M +17 -3 albumiconview.cpp 1.111 --- kdeextragear-3/digikam/digikam/albumiconview.cpp #1.110:1.111 @@ -163,4 +163,5 @@ public: bool inFocus; + QString nextItemToSelect; }; @@ -407,4 +408,12 @@ void AlbumIconView::slotImageListerNewIt } + if (!d->nextItemToSelect.isEmpty()) + { + ThumbItem* item = findItem(d->nextItemToSelect); + if (item) + item->setSelected(true); + d->nextItemToSelect = QString(); + } + emit signalItemsAdded(); } @@ -748,6 +757,11 @@ void AlbumIconView::slotRename(AlbumIcon return; - AlbumFileCopyMove::rename(album, item->fileItem()->url().fileName(), - newName); + if (!AlbumFileCopyMove::rename(album, item->fileItem()->url().fileName(), + newName)) + return; + + KURL newURL = item->fileItem()->url().upURL(); + newURL.addPath(newName); + d->nextItemToSelect = newURL.url(); if (d->currentAlbum && d->currentAlbum->type() == Album::TAG) |