[Digikam-devel] Digikam 0.8rc1 crashing when "HTML exporting", KIPIHTMLExport exists and i choose to "Not overwrite"

Tom Albers tomalbers at kde.nl
Thu Nov 17 23:21:41 GMT 2005


Op donderdag 17 november 2005 11:00, schreef Matiyam:
> Hi!
>
> Digikam is always crashing in this situation (is not a problem, just
> doesn't look good):
>
> - I export a HTML album in some dir. It works
> - I export again another album (i am just testing how it looks). I leave
> the same directory destination than before
> - A dialog appears: "The target folder "..../KIPIHTMLExport" already
> exists. Do you want to overwrite it?
>
> - If I press "Yes", it gets overwriten (it works ok)
> - BUT if I press "No", digikam crashes
>
> I just get this in the console:
> KCrash: Application 'digikam' crashing...
> Unable to start Dr. Konqi
>
> The code handling this is here (imagesgallery.cpp):
>
> bool ImagesGallery::removeTargetGalleryFolder(void)
> {
>     QDir TargetDir;
>     QString MainTPath = m_configDlg->getImageName() + "/KIPIHTMLExport";
>
>     if (TargetDir.exists (MainTPath) == true)
>        {
>        if (KMessageBox::warningYesNo(kapp->activeWindow(),
>            i18n("The target folder\n'%1'\nalready exists; do you want
> overwrite it? (all data "
>                 "in this folder will be lost.)").arg(MainTPath)) ==
> KMessageBox::Yes)
>           {
>           if ( DeleteDir(MainTPath) == false )
>              {
>              KMessageBox::error(kapp->activeWindow(), i18n("Cannot
> remove folder '%1'.").arg(MainTPath));
>              return false;
>              }
>           }
>        }
>
>     return true;
> }
>
> It looks that if the answer to KMessageBox::warningYesNo is "No", the
> function returns true anyway.
>
> Thanks a lot for such a great program!!

Could you report this problem to the kipi-plugins product in bugs.kde.org as 
well? I would like to take a look at it, but i'm not sure this will happen 
soon. In bugs.kde.org your bug will not get lost...

thanks and sorry fo referring to bko for the second time ;-) 

Toma
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1930 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20051118/f8372559/attachment.bin>


More information about the Digikam-devel mailing list