Commit 3e2d10cf authored by Laurent Montel's avatar Laurent Montel 😁

When we cancel create resource don't keep it in system

parent b2afc9ee
......@@ -48,7 +48,7 @@ public:
void setAccessTokenUrl(const QUrl &value);
/// Constructor.
explicit O1(QObject *parent = 0);
explicit O1(QObject *parent = Q_NULLPTR);
/// Parse a URL-encoded response string.
static QMap<QString, QString> parseResponse(const QByteArray &response);
......
......@@ -227,6 +227,7 @@ void TomboyNotesResource::configure(WId windowId)
// Run the configuration dialog an save settings if accepted
if (dialog.exec() != QDialog::Accepted) {
Q_EMIT configurationDialogRejected();
return;
}
......@@ -242,6 +243,7 @@ void TomboyNotesResource::configure(WId windowId)
} else {
synchronize();
}
Q_EMIT configurationDialogAccepted();
}
void TomboyNotesResource::itemAdded(const Akonadi::Item &item, const Akonadi::Collection &collection)
......
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