Skip to content

Commit 80a000c

Browse files
committedMay 22, 2017
Immediately show progress bar when opening attribute table
...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.
1 parent 0b95c77 commit 80a000c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/attributetable/qgsattributetablemodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ void QgsAttributeTableModel::loadLayer()
422422
{
423423
++i;
424424

425-
if ( t.elapsed() > 1000 )
425+
if ( t.elapsed() > 1000 || i == 1 )
426426
{
427427
bool cancel = false;
428428
emit progress( i, cancel );

0 commit comments

Comments
 (0)
Please sign in to comment.