mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-23 05:44:45 -04:00
fixed SEGV due to calling layout change in the wrong place
This commit is contained in:
parent
d8a24c8c3a
commit
5194287645
2 changed files with 11 additions and 3 deletions
|
@ -862,6 +862,7 @@ Qt::ItemFlags RetroshareDirModel::flags( const QModelIndex & index ) const
|
|||
/* Callback from */
|
||||
void RetroshareDirModel::preMods()
|
||||
{
|
||||
emit layoutAboutToBeChanged();
|
||||
#if QT_VERSION < 0x050000
|
||||
reset();
|
||||
#else
|
||||
|
@ -877,7 +878,7 @@ void RetroshareDirModel::preMods()
|
|||
/* Callback from */
|
||||
void RetroshareDirModel::postMods()
|
||||
{
|
||||
emit layoutAboutToBeChanged();
|
||||
// emit layoutAboutToBeChanged();
|
||||
#if QT_VERSION >= 0x040600
|
||||
beginResetModel();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue