Skip to content

Commit d92988e

Browse files
committed
KviDefaultScript: actions.kvs allow restoring and loading by default
we have a default actions now ;) so add it to restore default script and also on new run make sure its copied to user config area
1 parent 91587b4 commit d92988e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

data/defscript/default.kvs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
%mypath = "$file.extractpath($0)$file.ps"
1313

1414
# Fetch default scripts data
15+
include "actions.kvs" %mypath
1516
include "aliases.kvs" %mypath
1617
include "events.kvs" %mypath
1718
include "popups.kvs" %mypath

src/kvirc/kernel/KviDefaultScript.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void KviDefaultScriptManager::restoreInternal()
153153
{
154154
if(m_pDialog->m_pData->isChecked())
155155
KviActionManager::instance()->killAllKvsUserActions();
156-
// No need to load here since we haven't a default actions script yet
156+
g_pApp->loadDefaultScript("actions");
157157
m_szAction = oConfig.readEntry("ActionVersion");
158158
}
159159

0 commit comments

Comments
 (0)