Commit 9d7bf49b authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: hotkeys: always overwrite global hotkeys (fix #7932)

parent 28d465e8
...@@ -1353,13 +1353,10 @@ void KeySelectorControl::doApply() ...@@ -1353,13 +1353,10 @@ void KeySelectorControl::doApply()
config_PutPsz( p_this, config_PutPsz( p_this,
qtu( it->data( ACTION_COL, Qt::UserRole ).toString() ), qtu( it->data( ACTION_COL, Qt::UserRole ).toString() ),
qtu( it->data( HOTKEY_COL, Qt::UserRole ).toString() ) ); qtu( it->data( HOTKEY_COL, Qt::UserRole ).toString() ) );
if( !it->data( GLOBAL_HOTKEY_COL, Qt::UserRole ).toString().isEmpty() )
{
config_PutPsz( p_this,
qtu( "global-" + it->data( ACTION_COL, Qt::UserRole ).toString() ),
qtu( it->data( GLOBAL_HOTKEY_COL, Qt::UserRole ).toString() ) );
}
config_PutPsz( p_this,
qtu( "global-" + it->data( ACTION_COL, Qt::UserRole ).toString() ),
qtu( it->data( GLOBAL_HOTKEY_COL, Qt::UserRole ).toString() ) );
} }
} }
......
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