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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

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

-- M

_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Digikam 0.8rc1 crashing when "HTML exporting", KIPIHTMLExport exists and i choose to "Not overwrite"

Bugzilla from tomalbers@kde.nl
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

_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel

smime.p7s (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Digikam 0.8rc1 crashing when "HTML exporting", KIPIHTMLExport exists and i choose to "Not overwrite"

Matiyam
Tom Albers wrote:

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

Ok, i have done that. This is bug
Bug 116605: ImagesGallery plugins crahing when exporting to an existing
dir an choosing no to overwrite
 http://bugs.kde.org/show_bug.cgi?id=116605


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

No problem! The wishlist item of my other email is
Bug 116606: wish: I want to see again all my pictures having a tag in a
flat view, not separated by albums

Thanks for your quick answer, and let's hope i see my wishes fullfilled :)

-- M

_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel