Skip to content

Commit

Permalink
Gui: Fix issues in About dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Nov 26, 2024
1 parent d365d66 commit ede7a52
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Gui/DlgAbout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,18 +702,18 @@ void AboutDialog::copyToClipboard()
}

str << "\n";

QClipboard* cb = QApplication::clipboard();
cb->setText(data);
auto copytext = ui->copyButton->text();
ui->copyButton->setText(tr("Copied!"));
QTimer::singleShot(2000, [this,copytext]() { ui->copyButton->setText(copytext); });

}
}

QClipboard* cb = QApplication::clipboard();
cb->setText(data);

auto copytext = ui->copyButton->text();
ui->copyButton->setText(tr("Copied!"));
const int timeout = 2000;
QTimer::singleShot(timeout, this, [this, copytext]() {
ui->copyButton->setText(copytext);
});
}

// ----------------------------------------------------------------------------
Expand Down

0 comments on commit ede7a52

Please sign in to comment.