Commit 6a125835 authored by Christoph Cullmann's avatar Christoph Cullmann

ensure m_dataChanged is false after dialog creation

parent 6f9dc51b
......@@ -54,7 +54,6 @@ KateConfigDialog::KateConfigDialog(KateMainWindow *parent, KTextEditor::View *vi
: KPageDialog(parent)
, m_mainWindow(parent)
, m_view(view)
, m_dataChanged(false)
{
setFaceType(Tree);
setWindowTitle(i18n("Configure"));
......@@ -251,6 +250,9 @@ KateConfigDialog::KateConfigDialog(KateMainWindow *parent, KTextEditor::View *vi
connect(this, &KateConfigDialog::currentPageChanged, this, &KateConfigDialog::slotCurrentPageChanged);
resize(minimumSizeHint());
// ensure no stray signals already set this!
m_dataChanged = false;
}
KateConfigDialog::~KateConfigDialog()
......
......@@ -67,7 +67,7 @@ public:
void addPluginPage(KTextEditor::Plugin *plugin);
void removePluginPage(KTextEditor::Plugin *plugin);
void showAppPluginPage(KTextEditor::Plugin *plugin, uint id);
protected Q_SLOTS:
void slotApply();
void slotChanged();
......@@ -77,12 +77,12 @@ protected Q_SLOTS:
protected:
void closeEvent(QCloseEvent *event) override;
private:
KateMainWindow *m_mainWindow;
KTextEditor::View *m_view;
bool m_dataChanged;
bool m_dataChanged = false;
QCheckBox *m_modNotifications;
QCheckBox *m_modCloseAfterLast;
......
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