[niepce] Fix SelectionController::getLibraryClient().
- From: Hubert Figuière <hub src gnome org>
- To: svn-commits-list gnome org
- Subject: [niepce] Fix SelectionController::getLibraryClient().
- Date: Fri, 17 Jul 2009 03:56:52 +0000 (UTC)
commit fae46d4a09a44019f9b62ba4fd8b3c189f85f84f
Author: Hubert Figuiere <hub figuiere net>
Date: Tue Jul 14 16:57:04 2009 -0400
Fix SelectionController::getLibraryClient().
ChangeLog | 2 ++
src/niepce/ui/selectioncontroller.cpp | 4 +++-
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3235996..56aa424 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2009-07-14 Hubert Figuiere <hub figuiere net>
+ * Fix SelectionController::getLibraryClient().
+
* Rework the FilmStrip to have a C++ control and less glitches.
2009-07-13 Hubert Figuiere <hub figuiere net>
diff --git a/src/niepce/ui/selectioncontroller.cpp b/src/niepce/ui/selectioncontroller.cpp
index 3169a1d..bb403a6 100644
--- a/src/niepce/ui/selectioncontroller.cpp
+++ b/src/niepce/ui/selectioncontroller.cpp
@@ -91,7 +91,9 @@ void SelectionController::selected(IImageSelectable * selectable)
libraryclient::LibraryClient::Ptr SelectionController::getLibraryClient()
{
- return std::tr1::dynamic_pointer_cast<NiepceWindow>(m_parent.lock())->getLibraryClient();
+ ModuleShell::Ptr shell = std::tr1::dynamic_pointer_cast<ModuleShell>(m_parent.lock());
+ DBG_ASSERT(shell, "parent not a ModuleShell");
+ return shell->getLibraryClient();
}
inline int SelectionController::get_selection()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]