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

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

parent 28d465e8
...@@ -1353,14 +1353,11 @@ void KeySelectorControl::doApply() ...@@ -1353,14 +1353,11 @@ 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, config_PutPsz( p_this,
qtu( "global-" + it->data( ACTION_COL, Qt::UserRole ).toString() ), qtu( "global-" + it->data( ACTION_COL, Qt::UserRole ).toString() ),
qtu( it->data( GLOBAL_HOTKEY_COL, Qt::UserRole ).toString() ) ); qtu( it->data( GLOBAL_HOTKEY_COL, Qt::UserRole ).toString() ) );
} }
}
} }
bool KeySelectorControl::eventFilter( QObject *obj, QEvent *e ) bool KeySelectorControl::eventFilter( QObject *obj, QEvent *e )
......
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