Summary: | Crash when creating/deleting submenu | ||
---|---|---|---|
Product: | [Applications] kmenuedit | Reporter: | Kaleb Pederson <kibab> |
Component: | general | Assignee: | Unassigned bugs mailing-list <unassigned-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Kaleb Pederson
2004-01-24 20:25:51 UTC
Subject: kdebase/kmenuedit CVS commit by waba: Make sure to open menu before inserting a new item. (Similar to r1.75) (BR73428) CCMAIL: 73428-done@bugs.kde.org M +7 -7 treeview.cpp 1.81 --- kdebase/kmenuedit/treeview.cpp #1.80:1.81 @@ -604,9 +604,9 @@ void TreeView::slotDropped (QDropEvent * parentItem->setOpen(true); + // update fileInfo data folderInfo->fullId = parentFolderInfo->fullId + folderInfo->id; folderInfo->setInUse(true); parentFolderInfo->add(folderInfo); - // create the TreeItem TreeItem *newItem = createTreeItem(parentItem, after, folderInfo); @@ -766,4 +766,8 @@ void TreeView::newsubmenu() folderInfo->fullId = parentFolderInfo->fullId + folderInfo->id; + // create the TreeItem + if(parentItem) + parentItem->setOpen(true); + // update fileInfo data parentFolderInfo->add(folderInfo); @@ -771,8 +775,4 @@ void TreeView::newsubmenu() TreeItem *newItem = createTreeItem(parentItem, item, folderInfo, true); - // create the TreeItem - if(parentItem) - parentItem->setOpen(true); - setSelected ( newItem, true); itemSelected( newItem); @@ -831,4 +831,5 @@ void TreeView::newitem() MenuEntryInfo *entryInfo = new MenuEntryInfo(s, df); + // create the TreeItem if(parentItem) parentItem->setOpen(true); @@ -837,5 +838,4 @@ void TreeView::newitem() parentFolderInfo->add(entryInfo); - // create the TreeItem TreeItem *newItem = createTreeItem(parentItem, item, entryInfo, true); @@ -973,9 +973,9 @@ void TreeView::paste() parentItem->setOpen(true); + // update fileInfo data folderInfo->fullId = parentFolderInfo->fullId + folderInfo->id; folderInfo->setInUse(true); parentFolderInfo->add(folderInfo); - // create the TreeItem TreeItem *newItem = createTreeItem(parentItem, item, folderInfo); |