[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 92884] usability : The "Select Album" dialog should select the
From: Joern Ahrens <joern.ahrens () kdemail ! net>
Date: 2004-11-27 18:09:39
Message-ID: 20041127180939.24461.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=92884
------- Additional Comments From joern.ahrens kdemail net 2004-11-27 19:09 -------
CVS commit by jahrens:
... was in the wrong directory during commit, so here is the rest :)
After closing the cameragui, the last destination is opened in digikam.
Hope you can live with that, Guillaume.
BUG: 92884
CCMAIL: joern.ahrens kdemail net, digikam-devel lists sourceforge net
M +2 -0 digikamapp.cpp 1.75
M +18 -2 digikamview.cpp 1.24
M +1 -0 digikamview.h 1.16
--- kdeextragear-3/digikam/digikam/digikamapp.cpp #1.74:1.75
@ -633,4 +633,6 @ void DigikamApp::slotCameraConnect()
ctype->port(), ctype->path());
cgui->show();
+ connect(cgui, SIGNAL(signalLastDestionation(const KURL&)),
+ mView, SLOT(slotSelectAlbum(const KURL&)));
}
}
--- kdeextragear-3/digikam/digikam/digikamview.cpp #1.23:1.24
@ -234,4 +234,20 @ void DigikamView::getForwardHistory(QStr
}
+void DigikamView::slotSelectAlbum(const KURL &url)
+{
+ if(url.isEmpty())
+ return;
+
+ Album *album = mAlbumMan->findPAlbum(url);
+ if(album && album->getViewItem())
+ {
+ AlbumFolderItem *item;
+ item = static_cast<AlbumFolderItem*>(album->getViewItem());
+ mFolderView->setSelected(item);
+ mParent->enableAlbumBackwardHistory(!mAlbumHistory->isBackwardEmpty());
+ mParent->enableAlbumForwardHistory(!mAlbumHistory->isForwardEmpty());
+ }
+}
+
// ----------------------------------------------------------------
--- kdeextragear-3/digikam/digikam/digikamview.h #1.15:1.16
@ -87,4 +87,5 @ public slots:
void slotAlbumHistoryForward(int steps=1);
void slotAlbumDeleted(Album *album);
+ void slotSelectAlbum(const KURL &url);
// Tag action slots
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic