Commit b4ac9080 authored by Scott Wheeler's avatar Scott Wheeler

Check for null before removing an item from the list. Fixes a crash.

svn path=/trunk/kdemultimedia/juk/; revision=205079
parent 22ae2f00
...@@ -57,6 +57,9 @@ void DirectoryList::addDirectory() ...@@ -57,6 +57,9 @@ void DirectoryList::addDirectory()
void DirectoryList::removeDirectory() void DirectoryList::removeDirectory()
{ {
QString dir = directoryListView->selectedItem()->text(0); QString dir = directoryListView->selectedItem()->text(0);
dirList.remove(dir); dirList.remove(dir);
emit(directoryRemoved(dir)); emit(directoryRemoved(dir));
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