1
0
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:
Michail Vourlakos 2020-05-27 12:03:20 +03:00
parent f3bb208e04
commit c7f530fb7a

View File

@ -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();
}
}