diff --git a/src/apps/qcam/main_window.cpp b/src/apps/qcam/main_window.cpp
index 7e3f3da60..96a2d5090 100644
--- a/src/apps/qcam/main_window.cpp
+++ b/src/apps/qcam/main_window.cpp
@@ -333,6 +333,9 @@ int MainWindow::openCamera()
 
 void MainWindow::toggleCapture(bool start)
 {
+	if (!camera_)
+		return;
+
 	if (start) {
 		startCapture();
 		startStopAction_->setIcon(iconStop_);
