src/mainWindow.cc

changeset 943
af81220741d9
parent 896
4988666b5e3c
child 944
1a6f1997fcbe
--- 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;
 

mercurial