Commit 8a9b7cbb authored by Laurent Montel's avatar Laurent Montel 😁

Fix method

parent 8e57c087
......@@ -339,13 +339,13 @@ void SieveEditorMainWidget::slotReplace()
}
}
void SieveEditorMainWidget::slotShare()
void SieveEditorMainWidget::slotShareScript()
{
QWidget *w = mTabWidget->currentWidget();
if (w) {
SieveEditorPageWidget *page = qobject_cast<SieveEditorPageWidget *>(w);
if (page) {
page->share();
page->shareScript();
}
}
}
......
......@@ -68,7 +68,7 @@ public Q_SLOTS:
void slotCut();
void slotSaveAs();
void slotCheckSpelling();
void slotShare();
void slotShareScript();
void slotImport();
void slotAutoGenerateScript();
void slotCheckSyntax();
......
......@@ -171,7 +171,7 @@ void SieveEditorMainWindow::setupActions()
mImportAction->setText(i18n("Import..."));
mImportAction->setEnabled(false);
mShareAction = ac->addAction(QStringLiteral("share_script"), mMainWidget->sieveEditorMainWidget(), SLOT(slotShare()));
mShareAction = ac->addAction(QStringLiteral("share_script"), mMainWidget->sieveEditorMainWidget(), SLOT(slotShareScript()));
mShareAction->setText(i18n("Share..."));
const QStringList overlays = QStringList() << QStringLiteral("list-add");
mShareAction->setIcon(QIcon(new KIconEngine(QStringLiteral("get-hot-new-stuff"), KIconLoader::global(), overlays)));
......
......@@ -213,7 +213,7 @@ void SieveEditorPageWidget::replace()
mSieveEditorWidget->replace();
}
void SieveEditorPageWidget::share()
void SieveEditorPageWidget::shareScript()
{
mSieveEditorWidget->slotShareScript();
}
......
......@@ -63,7 +63,7 @@ public:
void selectAll();
void saveAs();
void checkSpelling();
void share();
void shareScript();
void import();
void autoGenerateScript();
void checkSyntax();
......
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