Commit ee22562a authored by Pablo Rauzy's avatar Pablo Rauzy Committed by Christoph Cullmann
Browse files

delaying macros loading after plugin object construction for message signals to work

parent 0395dd96
......@@ -60,7 +60,6 @@ KeyboardMacrosPlugin::KeyboardMacrosPlugin(QObject *parent, const QList<QVariant
{
m_commands = new KeyboardMacrosPluginCommands(this);
m_storage = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QStringLiteral("/kate/keyboardmacros.json");
loadNamedMacros();
m_storageLock = new QLockFile(m_storage + QStringLiteral(".lock"));
}
......@@ -73,6 +72,7 @@ KeyboardMacrosPlugin::~KeyboardMacrosPlugin()
QObject *KeyboardMacrosPlugin::createView(KTextEditor::MainWindow *mainWindow)
{
loadNamedMacros();
m_mainWindow = mainWindow;
m_pluginView = new KeyboardMacrosPluginView(this, mainWindow);
return m_pluginView;
......
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