Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit c82fcf62 authored by Laurent Montel's avatar Laurent Montel 😁

Remove unused method

parent 3c90b861
......@@ -1017,32 +1017,6 @@ bool ActionManager::saveAsURL(const QUrl &url)
return success;
}
QUrl ActionManager::getSaveURL()
{
QUrl url =
QFileDialog::getSaveFileUrl(dialogParent(), QString(), QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1String("/korganizer/")),
i18n("*.ics *.vcs|Calendar Files")
);
if (!url.isValid()) {
return url;
}
QString filename = url.fileName();
QString e = filename.right(4);
if (e != QLatin1String(".vcs") && e != QLatin1String(".ics")) {
// Default save format is iCalendar
filename += QLatin1String(".ics");
}
url = url.adjusted(QUrl::RemoveFilename);
url.setPath(url.path() + filename);
qCDebug(KORGANIZER_LOG) << "url:" << url.url();
return url;
}
void ActionManager::saveProperties(KConfigGroup &config)
{
......
......@@ -292,8 +292,6 @@ protected Q_SLOTS:
void updateUndoRedoActions();
protected:
/** Get URL for saving. Opens FileDialog. */
QUrl getSaveURL();
/**
Return widget used as parent for dialogs and message boxes.
......
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