mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Fix SEGV on ESC in chart settings
If you press ESC on the chart settings (not add chart) dialog then the dialog is closed and deleted, causing a SEGV. This patch overrides reject() to ensure the dialog is just hidden.
This commit is contained in:
@@ -60,3 +60,9 @@ ChartSettings::closeEvent(QCloseEvent* event)
|
||||
event->ignore();
|
||||
hide();
|
||||
}
|
||||
|
||||
void
|
||||
ChartSettings::reject()
|
||||
{
|
||||
hide();
|
||||
}
|
||||
|
||||
@@ -34,6 +34,9 @@ class ChartSettings : public QDialog
|
||||
ChartSettings(QWidget *parent, QWidget *contents);
|
||||
void closeEvent(QCloseEvent* event);
|
||||
|
||||
public slots:
|
||||
void reject();
|
||||
|
||||
private:
|
||||
QPushButton *btnOK;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user