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:
Bill Somerville
2015-04-06 13:25:51 +00:00
parent dad4863e84
commit 3781bdb57a
5 changed files with 16 additions and 14 deletions
+1 -3
View File
@@ -58,7 +58,6 @@ FrequencyList::FrequencyList (Frequencies frequencies, QObject * parent)
: QSortFilterProxyModel {parent}
, m_ {frequencies, parent}
{
// setDynamicSortFilter (true);
setSourceModel (&*m_);
setSortRole (SortRole);
}
@@ -73,9 +72,8 @@ FrequencyList& FrequencyList::operator = (Frequencies frequencies)
return *this;
}
auto FrequencyList::frequencies () -> Frequencies
auto FrequencyList::frequencies () const -> Frequencies
{
submit ();
return m_->frequencies ();
}