[KPhotoAlbum] Please Read - Release procedure started (new snapshot)
Jesper K. Pedersen
blackie at blackie.dk
Sun Mar 19 22:26:07 GMT 2006
Thanks.
Man was that code weird, it must have been some left over since long ago ;-)
Cheers
Jesper.
On Tuesday 14 March 2006 09:47, Martin Hoeller wrote:
| Hi!
|
| On 13 Mär 2006, Jesper K. Pedersen wrote:
| > On Monday 13 March 2006 15:09, Martin Hoeller wrote:
| > | *) Also related to the search dialog is another bug: I doubt the sense
| > | of the "Image Preview" pane, as there will never be any image previewed
| > | as far as I can say. However, clicking the "x" button within the
| > | preview results an a KPhotoAlbum crash!
| >
| > Well the dialog is the same as the anotation dialog, which is why you see
| > the preview. It shouldn't crash of course, which I'll look into.
|
| I had a look at it and fixed it by
| a) protecting the access to a possible null-pointer
| b) disabling the delete button in the search dialog
|
|
| Here is the patch:
|
| Index: AnnotationDialog/AnnotationDialog.cpp
| ===================================================================
| --- AnnotationDialog/AnnotationDialog.cpp (revision 518547)
| +++ AnnotationDialog/AnnotationDialog.cpp (working copy)
| @@ -475,6 +475,7 @@
| _prevBut->setEnabled( false );
| _rotateLeft->setEnabled( false );
| _rotateRight->setEnabled( false );
| + _delBut->setEnabled( false );
| }
| else {
| _okBut->setGuiItem( KStdGuiItem::ok() );
| @@ -487,6 +488,7 @@
| }
| _rotateLeft->setEnabled( true );
| _rotateRight->setEnabled( true );
| + _delBut->setEnabled( true );
| }
| for( QPtrListIterator<ListSelect> it( _optionList ); *it; ++it ) {
| (*it)->setShowMergeCheckbox( _setup == MULTIPLE || _setup ==
| SEARCH ); @@ -712,8 +714,14 @@
| list.append( info );
|
| QStringList strList;
| - for( ImageInfoListConstIterator it = list.constBegin(); it !=
| list.constEnd(); ++it ) - strList.append( (*it)->fileName() );
| + for( ImageInfoListConstIterator it = list.constBegin(); it !=
| list.constEnd(); ++it ) { + if ( *it )
| + strList.append( (*it)->fileName() );
| + }
| +
| + if ( strList.isEmpty() )
| + return;
| +
| int ret = dialog.exec( strList );
| if ( ret == Rejected )
| return;
|
|
| hth,
| - martin
--
Jesper K. Pedersen | Klarälvdalens Datakonsult
Senior Software Engineer | www.klaralvdalens-datakonsult.se
Prinsensgade 4a st. |
9800 Hjørring | Platform-independent
Denmark | software solutions
More information about the Kphotoalbum
mailing list