--- a/src/mainWindow.cc Mon Dec 01 05:10:22 2014 +0200 +++ b/src/mainWindow.cc Sat Aug 22 13:51:20 2015 +0300 @@ -660,7 +660,7 @@ void MainWindow::spawnContextMenu (const QPoint pos) { const bool single = (Selection().size() == 1); - LDObjectPtr singleObj = single ? Selection().first() : LDObjectPtr(); + LDObjectPtr singleObj = single ? Selection().first() : nullptr; bool hasSubfiles = false;