소스 검색

ui: Fix unsaved changes dialog showing twice

When clicking the close button with unsaved changes in a source properties
dialog closeEvent and reject are called, which both call ConfirmQuit.
This fixes it by setting the acceptClicked flag correctly in ConfirmQuit
Matthew McNamara 8 년 전
부모
커밋
d8743a2872
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      UI/window-basic-properties.cpp

+ 1 - 0
UI/window-basic-properties.cpp

@@ -288,6 +288,7 @@ bool OBSBasicProperties::ConfirmQuit()
 
 	switch (button) {
 	case QMessageBox::Save:
+		acceptClicked = true;
 		if (view->DeferUpdate())
 			view->UpdateSettings();
 		// Do nothing because the settings are already updated