Commit 4f674e54 authored by Laurent Montel's avatar Laurent Montel 😁

Fix store bookmark

parent 10214e37
......@@ -60,7 +60,7 @@ void SieveEditorBookmarks::openBookmark(const KBookmark &bm, Qt::MouseButtons mb
{
Q_UNUSED(mb);
Q_UNUSED(km);
Q_EMIT openUrl(bm.url(), bm.text());
Q_EMIT openUrl(bm.url());
}
QString SieveEditorBookmarks::currentTitle() const
......
......@@ -42,7 +42,7 @@ public:
QUrl currentUrl() const Q_DECL_OVERRIDE;
Q_SIGNALS:
void openUrl(const QUrl &url, const QString &description);
void openUrl(const QUrl &url);
private:
KBookmarkMenu *mBookmarkMenu;
......
......@@ -517,13 +517,13 @@ KSieveUi::SieveEditorWidget::EditorMode SieveEditorMainWidget::pageMode() const
return KSieveUi::SieveEditorWidget::Unknown;
}
void SieveEditorMainWidget::openBookmarkUrl(const QUrl &url, const QString &description)
void SieveEditorMainWidget::openBookmarkUrl(const QUrl &url)
{
QWidget *w = mTabWidget->currentWidget();
if (w) {
SieveEditorPageWidget *page = qobject_cast<SieveEditorPageWidget *>(w);
if (page) {
page->openBookmarkUrl(url, description);
page->openBookmarkUrl(url);
}
}
}
......
......@@ -53,7 +53,7 @@ public:
bool hasSelection() const;
QString currentHelpTitle() const;
QUrl currentHelpUrl() const;
void openBookmarkUrl(const QUrl &url, const QString &description);
void openBookmarkUrl(const QUrl &url);
public Q_SLOTS:
void slotGoToLine();
......
......@@ -334,9 +334,9 @@ void SieveEditorMainWindow::slotCopyAvailable(bool b)
mCutAction->setEnabled(editActionEnabled && b);
}
void SieveEditorMainWindow::slotOpenBookmarkUrl(const QUrl &url, const QString &description)
void SieveEditorMainWindow::slotOpenBookmarkUrl(const QUrl &url)
{
mMainWidget->sieveEditorMainWidget()->openBookmarkUrl(url, description);
mMainWidget->sieveEditorMainWidget()->openBookmarkUrl(url);
}
QString SieveEditorMainWindow::currentHelpTitle() const
......
......@@ -62,7 +62,7 @@ private Q_SLOTS:
void slotUndoAvailable(bool);
void slotRedoAvailable(bool);
void slotCopyAvailable(bool b);
void slotOpenBookmarkUrl(const QUrl &url, const QString &description);
void slotOpenBookmarkUrl(const QUrl &url);
private:
void initStatusBar();
void readConfig();
......
......@@ -303,9 +303,9 @@ void SieveEditorPageWidget::zoomOut()
mSieveEditorWidget->zoomOut();
}
void SieveEditorPageWidget::openBookmarkUrl(const QUrl &url, const QString &description)
void SieveEditorPageWidget::openBookmarkUrl(const QUrl &url)
{
mSieveEditorWidget->openBookmarkUrl(url, description);
mSieveEditorWidget->openBookmarkUrl(url);
}
QString SieveEditorPageWidget::currentHelpTitle() const
......
......@@ -77,7 +77,7 @@ public:
void zoomOut();
QString currentHelpTitle() const;
QUrl currentHelpUrl() const;
void openBookmarkUrl(const QUrl &url, const QString &description);
void openBookmarkUrl(const QUrl &url);
Q_SIGNALS:
void refreshList();
void scriptModified(bool, SieveEditorPageWidget *);
......
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