]> cloud.milkyroute.net Git - dolphin.git/commit
Fix crash when triggereing the "Compare files" action via D-Bus
authorFrank Reininghaus <frank78ac@googlemail.com>
Sun, 13 Oct 2013 08:55:21 +0000 (10:55 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Sun, 13 Oct 2013 08:55:21 +0000 (10:55 +0200)
commit96ba990d865b2dfb966961061ba5154dcd3187b4
treebe30166c2fb23ce9c2cce8afb42ef88f22770497
parent0c55297ce40847a9af1e00f233c3943f66ab577f
Fix crash when triggereing the "Compare files" action via D-Bus

If the number of selected items is not two, Dolphin disables this
action. However, it is still possible to trigger it via D-Bus, and this
could cause a crash in DolphinMainWindow::compareFiles() because this
function did not test at all if there are really two items selected.

This patch adds such a check and simplifies the code in that function.

BUG: 325517
FIXED-IN: 4.11.3
src/dolphinmainwindow.cpp