Skip to content

Commit

Permalink
Immediately show progress bar when opening attribute table
Browse files Browse the repository at this point in the history
...instead of waiting 1 second before first showing it. It's a
placebo which doesn't affect the actual opening time, but
makes it seem more responsive to users by avoiding the
initial 1 second blocking delay before any feedback is
given.
  • Loading branch information
nyalldawson committed May 22, 2017
1 parent 0b95c77 commit 80a000c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/attributetable/qgsattributetablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ void QgsAttributeTableModel::loadLayer()
{
++i;

if ( t.elapsed() > 1000 )
if ( t.elapsed() > 1000 || i == 1 )
{
bool cancel = false;
emit progress( i, cancel );
Expand Down

0 comments on commit 80a000c

Please sign in to comment.