瀏覽代碼

UI: Fix placeholder element not being deleted

derrod 3 年之前
父節點
當前提交
1eedf4b50d
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      UI/window-basic-about.cpp

+ 3 - 1
UI/window-basic-about.cpp

@@ -34,7 +34,9 @@ OBSAbout::OBSAbout(QWidget *parent) : QDialog(parent), ui(new Ui::OBSAbout)
 
 	ui->contribute->setText(QTStr("About.Contribute"));
 
-	if (!steam) {
+	if (steam) {
+		delete ui->donate;
+	} else {
 		ui->donate->setText(
 			"&nbsp;&nbsp;<a href='https://obsproject.com/contribute'>" +
 			QTStr("About.Donate") + "</a>");