mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-08 08:54:41 -04:00
Fix another issue with station details not being saved
Due to what appears to be a Qt bug, any in progress user edit to a table fields is not updated in the underlying data models until QDialog::accept() is called, this means that model validation before calling QDialog::accept() is tricky. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5164 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+7
-2
@@ -1490,6 +1490,13 @@ void Configuration::impl::accept ()
|
||||
{
|
||||
return; // not accepting
|
||||
}
|
||||
|
||||
QDialog::accept(); // do this before accessing custom
|
||||
// models so that any changes in
|
||||
// delegates in views get flushed to
|
||||
// the underlying models before we
|
||||
// access them
|
||||
|
||||
sync_transceiver (true); // force an update
|
||||
|
||||
//
|
||||
@@ -1637,8 +1644,6 @@ void Configuration::impl::accept ()
|
||||
}
|
||||
|
||||
write_settings (); // make visible to all
|
||||
|
||||
QDialog::accept();
|
||||
}
|
||||
|
||||
void Configuration::impl::reject ()
|
||||
|
||||
Reference in New Issue
Block a user