Update of /cvsroot/mahogany/M/include/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10626/include/gui
Modified Files:
wxFolderView.h
Log Message:
check that we have been already constructed in HasPreview()
Index: wxFolderView.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/gui/wxFolderView.h,v
retrieving revision 1.148
retrieving revision 1.149
diff -b -u -2 -r1.148 -r1.149
--- wxFolderView.h 8 Apr 2004 17:28:49 -0000 1.148
+++ wxFolderView.h 1 Jul 2004 15:07:25 -0000 1.149
@@ -106,6 +106,12 @@
UIdType GetPreviewUId(void) const;
- /** Are we previewing anything? */
- bool HasPreview() const { return GetPreviewUId() != UID_ILLEGAL; }
+ /**
+ Are we previewing anything?
+
+ Note that this can be called very early, possibly even before
+ m_FolderCtrl has been created yet, so check for it.
+ */
+ bool HasPreview() const
+ { return m_FolderCtrl && GetPreviewUId() != UID_ILLEGAL; }
/** Returns false if no items are selected
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates