digikam-3.5.0-panorama-crasher.patch 1.8 KB

1234567891011121314151617181920212223242526272829
  1. diff -up digikam-3.5.0/extra/kipi-plugins/panorama/importwizard/lastpage.cpp.panorama-crasher digikam-3.5.0/extra/kipi-plugins/panorama/importwizard/lastpage.cpp
  2. --- digikam-3.5.0/extra/kipi-plugins/panorama/importwizard/lastpage.cpp.panorama-crasher 2013-10-01 08:23:09.000000000 +0200
  3. +++ digikam-3.5.0/extra/kipi-plugins/panorama/importwizard/lastpage.cpp 2013-12-12 11:50:14.199493306 +0100
  4. @@ -91,11 +91,7 @@ LastPage::LastPage(Manager* const mngr,
  5. QLabel *fileTemplateLabel = new QLabel(i18n("File name template:"), d->saveSettingsGroupBox);
  6. formatVBox->addWidget(fileTemplateLabel);
  7. - QString first = d->mngr->itemsList().front().fileName();
  8. - QString last = d->mngr->itemsList().back().fileName();
  9. -// QString file = "panorama";
  10. - QString file = QString("%1-%2").arg(first.left(first.lastIndexOf('.'))).arg(last.left(last.lastIndexOf('.')));
  11. - d->fileTemplateKLineEdit = new KLineEdit(file, d->saveSettingsGroupBox);
  12. + d->fileTemplateKLineEdit = new KLineEdit("panorama", d->saveSettingsGroupBox);
  13. d->fileTemplateKLineEdit->setToolTip(i18n("Name of the panorama file (without its extension)."));
  14. d->fileTemplateKLineEdit->setWhatsThis(i18n("<b>File name template</b>: Set here the base name of the files that "
  15. "will be saved. For example, if your template is <i>panorama</i> and if "
  16. @@ -146,6 +142,11 @@ LastPage::~LastPage()
  17. void LastPage::resetTitle()
  18. {
  19. + QString first = d->mngr->itemsList().front().fileName();
  20. + QString last = d->mngr->itemsList().back().fileName();
  21. + QString file = QString("%1-%2").arg(first.left(first.lastIndexOf('.'))).arg(last.left(last.lastIndexOf('.')));
  22. + d->fileTemplateKLineEdit->setText(file);
  23. +
  24. slotTemplateChanged(d->fileTemplateKLineEdit->text());
  25. checkFiles();
  26. }