mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-27 06:03:51 +03:00
block deleting Layout with Del in Editor
This commit is contained in:
parent
f3bb208e04
commit
c7f530fb7a
@ -775,7 +775,9 @@ void TabLayouts::on_dropEvent(QDropEvent *event)
|
||||
void TabLayouts::on_keyReleaseEvent(QKeyEvent *event)
|
||||
{
|
||||
if (event && event->key() == Qt::Key_Delete && m_parentDialog->currentPage() == Dialog::LayoutPage){
|
||||
on_remove_layout();
|
||||
//! Disabled because it deletes a layout when the user is editing its layout name and presses Delete
|
||||
//! there must be a way to block that deletion
|
||||
//on_remove_layout();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user