digikam-4.4.0-hang.patch 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. commit f0400ec7e518e753e0c4ccab4eb2b8b022f91767
  2. Author: Gilles Caulier <caulier.gilles@gmail.com>
  3. Date: Tue Oct 28 15:58:55 2014 +0100
  4. apply patch #89156
  5. BUGS: 337737
  6. FIXED-IN: 4.5.0
  7. diff --git core/libs/widgets/common/databasewidget.cpp b/libs/widgets/common/databasewidget.cpp
  8. index b04355b..858cf40 100644
  9. --- core/libs/widgets/common/databasewidget.cpp
  10. +++ core/libs/widgets/common/databasewidget.cpp
  11. @@ -172,30 +172,21 @@ void DatabaseWidget::setupMainArea()
  12. "<p><b>MySQL</b> backend is a more robust solution especially for remote and shared database storage. "
  13. "It is also more efficient to manage huge collection sizes. "
  14. "Be careful: this one it is still in experimental stage.</p>"));
  15. - setDatabaseInputFields(DatabaseParameters::SQLiteDatabaseType());
  16. -
  17. - // --------------------------------------------------------
  18. - adjustSize();
  19. + setDatabaseInputFields(DatabaseParameters::SQLiteDatabaseType());
  20. // --------------------------------------------------------
  21. - connect(databasePathEdit, SIGNAL(urlSelected(KUrl)),
  22. - this, SLOT(slotChangeDatabasePath(KUrl)));
  23. -
  24. - connect(databasePathEdit, SIGNAL(textChanged(QString)),
  25. - this, SLOT(slotDatabasePathEditedDelayed()));
  26. -
  27. connect(databaseType, SIGNAL(currentIndexChanged(int)),
  28. this, SLOT(slotHandleDBTypeIndexChanged(int)));
  29. + connect(checkDatabaseConnectionButton, SIGNAL(clicked()),
  30. + this, SLOT(checkDatabaseConnection()));
  31. +
  32. #ifdef HAVE_INTERNALMYSQL
  33. connect(internalServer, SIGNAL(stateChanged(int)),
  34. this, SLOT(slotHandleInternalServerCheckbox(int)));
  35. #endif // HAVE_INTERNALMYSQL
  36. -
  37. - connect(checkDatabaseConnectionButton, SIGNAL(clicked()),
  38. - this, SLOT(checkDatabaseConnection()));
  39. }
  40. QString DatabaseWidget::currentDatabaseType() const
  41. @@ -261,12 +252,24 @@ void DatabaseWidget::setDatabaseInputFields(const QString& currentIndexStr)
  42. d->databasePathLabel->setVisible(true);
  43. databasePathEdit->setVisible(true);
  44. d->expertSettings->setVisible(false);
  45. +
  46. + connect(databasePathEdit, SIGNAL(urlSelected(KUrl)),
  47. + this, SLOT(slotChangeDatabasePath(KUrl)));
  48. +
  49. + connect(databasePathEdit, SIGNAL(textChanged(QString)),
  50. + this, SLOT(slotDatabasePathEditedDelayed()));
  51. }
  52. else
  53. {
  54. d->databasePathLabel->setVisible(false);
  55. databasePathEdit->setVisible(false);
  56. d->expertSettings->setVisible(true);
  57. +
  58. + disconnect(databasePathEdit, SIGNAL(urlSelected(KUrl)),
  59. + this, SLOT(slotChangeDatabasePath(KUrl)));
  60. +
  61. + disconnect(databasePathEdit, SIGNAL(textChanged(QString)),
  62. + this, SLOT(slotDatabasePathEditedDelayed()));
  63. }
  64. adjustSize();
  65. @@ -355,9 +358,9 @@ void DatabaseWidget::setParametersFromSettings(const ApplicationSettings* const
  66. password->setText(settings->getDatabasePassword());
  67. - /* Now set the type according the database type from the settings.
  68. - * If no item is found, ignore the setting.
  69. - */
  70. + // Now set the type according the database type from the settings.
  71. + // If no item is found, ignore the setting.
  72. +
  73. for (int i=0; i<databaseType->count(); ++i)
  74. {
  75. //kDebug(50003) << "Comparing comboboxentry on index ["<< i <<"] [" << databaseType->itemData(i)