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

Matiyam matiyam at gmail.com
Thu Nov 17 10:00:31 GMT 2005


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!!

-- M




More information about the Digikam-devel mailing list