Commit 301c5549 authored by Laurent Montel's avatar Laurent Montel 😁

Use enableOkButton signal

parent 52aa9203
...@@ -67,7 +67,7 @@ set(QT_REQUIRED_VERSION "5.9.0") ...@@ -67,7 +67,7 @@ set(QT_REQUIRED_VERSION "5.9.0")
set(KDEPIMRUNTIME_LIB_VERSION "${KDEPIM_RUNTIME_VERSION_NUMBER}") set(KDEPIMRUNTIME_LIB_VERSION "${KDEPIM_RUNTIME_VERSION_NUMBER}")
set(KDEPIMRUNTIME_LIB_SOVERSION "5") set(KDEPIMRUNTIME_LIB_SOVERSION "5")
set(AKONADI_VERSION "5.10.44") set(AKONADI_VERSION "5.10.45")
set(KCONTACTS_LIB_VERSION "5.10.40") set(KCONTACTS_LIB_VERSION "5.10.40")
set(KCALENDARCORE_LIB_VERSION "5.10.40") set(KCALENDARCORE_LIB_VERSION "5.10.40")
......
...@@ -65,5 +65,4 @@ target_link_libraries(contactsconfig ...@@ -65,5 +65,4 @@ target_link_libraries(contactsconfig
KF5::AkonadiWidgets KF5::AkonadiWidgets
KF5::I18n KF5::I18n
KF5::KIOWidgets KF5::KIOWidgets
KF5::WindowSystem
) )
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "settings.h" #include "settings.h"
#include <KConfigDialogManager> #include <KConfigDialogManager>
#include <KWindowSystem>
#include <QTimer> #include <QTimer>
#include <KSharedConfig> #include <KSharedConfig>
...@@ -60,8 +59,7 @@ void ContactsSettingsWidget::validate() ...@@ -60,8 +59,7 @@ void ContactsSettingsWidget::validate()
{ {
const QUrl currentUrl = ui.kcfg_Path->url(); const QUrl currentUrl = ui.kcfg_Path->url();
if (currentUrl.isEmpty()) { if (currentUrl.isEmpty()) {
Q_EMIT enableOkButton(false);
//mOkButton->setEnabled(false);
return; return;
} }
...@@ -72,7 +70,7 @@ void ContactsSettingsWidget::validate() ...@@ -72,7 +70,7 @@ void ContactsSettingsWidget::validate()
} else { } else {
ui.kcfg_ReadOnly->setEnabled(true); ui.kcfg_ReadOnly->setEnabled(true);
} }
//mOkButton->setEnabled(true); Q_EMIT enableOkButton(true);
} }
void ContactsSettingsWidget::load() void ContactsSettingsWidget::load()
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include "settingsdialog.h" #include "settingsdialog.h"
#include "settings.h" #include "settings.h"
#include <KWindowSystem>
#include <KLocalizedString> #include <KLocalizedString>
#include <KGAPI/Account> #include <KGAPI/Account>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment