Commit bb5aedb0 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Fix changing command line encoder options not having effect until app restart

We have two plugins using the same config files so we need to reparse
the config each time we access it since it may have been changed by the
other plugin

BUGS: 446900
parent f246aa8f
......@@ -96,6 +96,7 @@ QList<K3bExternalEncoderCommand> K3bExternalEncoderCommand::defaultCommands()
QList<K3bExternalEncoderCommand> K3bExternalEncoderCommand::readCommands()
{
KSharedConfig::Ptr c = KSharedConfig::openConfig();
c->reparseConfiguration();
KConfigGroup grp(c,"K3bExternalEncoderPlugin" );
QList<K3bExternalEncoderCommand> commands;
......@@ -136,6 +137,7 @@ QList<K3bExternalEncoderCommand> K3bExternalEncoderCommand::readCommands()
void K3bExternalEncoderCommand::saveCommands( const QList<K3bExternalEncoderCommand>& cmds )
{
KSharedConfig::Ptr c = KSharedConfig::openConfig();
c->reparseConfiguration();
c->deleteGroup( "K3bExternalEncoderPlugin" );
KConfigGroup grp(c,"K3bExternalEncoderPlugin" );
......
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