1
0
Эх сурвалжийг харах

UI: Cleanup advanced audio functions

This removes the AdvAudioPropsClicked and AdvAudioPropsDestroyed
functions. The click function was not being used anywhere and the
destroy function was redundant because the dialog is set
to be deleted on close.
Clayton Groeneveld 4 жил өмнө
parent
commit
96a5e11cd9

+ 0 - 13
UI/window-basic-main.cpp

@@ -4798,19 +4798,6 @@ void OBSBasic::on_actionAdvAudioProperties_triggered()
 	advAudioWindow->show();
 	advAudioWindow->show();
 	advAudioWindow->setAttribute(Qt::WA_DeleteOnClose, true);
 	advAudioWindow->setAttribute(Qt::WA_DeleteOnClose, true);
 	advAudioWindow->SetIconsVisible(iconsVisible);
 	advAudioWindow->SetIconsVisible(iconsVisible);
-
-	connect(advAudioWindow, SIGNAL(destroyed()), this,
-		SLOT(AdvAudioPropsDestroyed()));
-}
-
-void OBSBasic::AdvAudioPropsClicked()
-{
-	on_actionAdvAudioProperties_triggered();
-}
-
-void OBSBasic::AdvAudioPropsDestroyed()
-{
-	advAudioWindow = nullptr;
 }
 }
 
 
 void OBSBasic::on_scenes_currentItemChanged(QListWidgetItem *current,
 void OBSBasic::on_scenes_currentItemChanged(QListWidgetItem *current,

+ 0 - 2
UI/window-basic-main.hpp

@@ -927,8 +927,6 @@ private slots:
 	void on_action_Settings_triggered();
 	void on_action_Settings_triggered();
 	void on_actionShowMissingFiles_triggered();
 	void on_actionShowMissingFiles_triggered();
 	void on_actionAdvAudioProperties_triggered();
 	void on_actionAdvAudioProperties_triggered();
-	void AdvAudioPropsClicked();
-	void AdvAudioPropsDestroyed();
 	void on_actionShowLogs_triggered();
 	void on_actionShowLogs_triggered();
 	void on_actionUploadCurrentLog_triggered();
 	void on_actionUploadCurrentLog_triggered();
 	void on_actionUploadLastLog_triggered();
 	void on_actionUploadLastLog_triggered();