Commit 897cd466 authored by hjk's avatar hjk
Browse files

fakevim: fix quitting using the status bar

parent 5c9fd00d
......@@ -402,14 +402,6 @@ EditorView::EditorView(EditorModel *model, QWidget *parent) :
m_statusWidgetButton->setText(tr("Placeholder"));
hbox->addWidget(m_statusWidgetButton);
QToolButton *closeButton = new QToolButton;
closeButton->setAutoRaise(true);
closeButton->setIcon(QIcon(":/core/images/clear.png"));
closeButton->setToolTip(tr("Close"));
connect(closeButton, SIGNAL(clicked()), m_statusWidget, SLOT(hide()));
hbox->addWidget(closeButton);
m_statusWidget->setVisible(false);
tl->addWidget(m_statusWidget);
}
......@@ -451,7 +443,7 @@ void EditorView::showEditorStatusBar(const QString &kind,
m_statusWidgetButton->setText(buttonText);
m_statusWidgetButton->disconnect();
if (object && member)
connect(m_infoWidgetButton, SIGNAL(clicked()), object, member);
connect(m_statusWidgetButton, SIGNAL(clicked()), object, member);
m_statusWidget->setVisible(true);
//m_editorForInfoWidget = currentEditor();
}
......
Supports Markdown
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