$OpenBSD$
An UpdateManager makes no sense on OpenBSD.

Index: desktop-widgets/mainwindow.cpp
--- desktop-widgets/mainwindow.cpp.orig
+++ desktop-widgets/mainwindow.cpp
@@ -110,7 +110,6 @@ MainWindow::MainWindow() : QMainWindow(),
 	helpView(0),
 #endif
 	state(VIEWALL),
-	survey(0),
 	findMovedImagesDialog(0)
 {
 	Q_ASSERT_X(m_Instance == NULL, "MainWindow", "MainWindow recreated!");
@@ -244,7 +243,6 @@ MainWindow::MainWindow() : QMainWindow(),
 	memset(&copyPasteDive, 0, sizeof(copyPasteDive));
 	memset(&what, 0, sizeof(what));
 
-	updateManager = new UpdateManager(this);
 	undoStack = new QUndoStack(this);
 	QAction *undoAction = undoStack->createUndoAction(this, tr("&Undo"));
 	QAction *redoAction = undoStack->createRedoAction(this, tr("&Redo"));
@@ -398,19 +396,26 @@ void MainWindow::setupSocialNetworkMenu()
 	ui.menuShare_on->addSeparator();
 	ui.menuShare_on->addMenu(connections);
 	ui.menubar->show();
+#else
+	/* Make sure the program does not segfault on exit. */
+	new QNetworkAccessManager();
 #endif
 }
 
 void MainWindow::facebookLoggedIn()
 {
+#if defined(FBSUPPORT)
 	connections->setTitle(tr("Disconnect from"));
 	share_on_fb->setEnabled(true);
+#endif
 }
 
 void MainWindow::facebookLoggedOut()
 {
+#if defined(FBSUPPORT)
 	connections->setTitle(tr("Connect to"));
 	share_on_fb->setEnabled(false);
+#endif
 }
 
 void MainWindow::socialNetworkRequestConnect()
@@ -1323,14 +1328,6 @@ void MainWindow::on_actionAboutSubsurface_triggered()
 	dlg.exec();
 }
 
-void MainWindow::on_action_Check_for_Updates_triggered()
-{
-	if (!updateManager)
-		updateManager = new UpdateManager(this);
-
-	updateManager->checkForUpdates();
-}
-
 void MainWindow::on_actionUserManual_triggered()
 {
 #ifndef NO_USERMANUAL
@@ -1340,13 +1337,6 @@ void MainWindow::on_actionUserManual_triggered()
 #endif
 }
 
-void MainWindow::on_actionUserSurvey_triggered()
-{
-	if(!survey)
-		survey = new UserSurvey(this);
-	survey->show();
-}
-
 void MainWindow::on_actionHash_images_triggered()
 {
 	if(!findMovedImagesDialog)
@@ -1497,31 +1487,11 @@ void MainWindow::readSettings()
 
 	loadRecentFiles();
 	if (firstRun) {
-		checkSurvey();
 		firstRun = false;
 	}
 }
 
 #undef TOOLBOX_PREF_BUTTON
-
-void MainWindow::checkSurvey()
-{
-	QSettings s;
-	s.beginGroup("UserSurvey");
-	if (!s.contains("FirstUse42")) {
-		QVariant value = QDate().currentDate();
-		s.setValue("FirstUse42", value);
-	}
-	// wait a week for production versions, but not at all for non-tagged builds
-	int waitTime = 7;
-	QDate firstUse42 = s.value("FirstUse42").toDate();
-	if (run_survey || (firstUse42.daysTo(QDate().currentDate()) > waitTime && !s.contains("SurveyDone"))) {
-		if (!survey)
-			survey = new UserSurvey(this);
-		survey->show();
-	}
-	s.endGroup();
-}
 
 void MainWindow::writeSettings()
 {
