File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
# /*##########################################################################
2
2
#
3
- # Copyright (c) 2016-2022 European Synchrotron Radiation Facility
3
+ # Copyright (c) 2016-2024 European Synchrotron Radiation Facility
4
4
#
5
5
# Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
# of this software and associated documentation files (the "Software"), to deal
@@ -115,10 +115,11 @@ def _deleteDialog(self):
115
115
self .qWaitForDestroy (ref )
116
116
117
117
def qWaitForPendingActions (self , dialog ):
118
+ self .qapp .processEvents ()
118
119
for _ in range (20 ):
119
120
if not dialog .hasPendingEvents ():
120
121
return
121
- self .qWait (10 )
122
+ self .qWait (100 )
122
123
raise RuntimeError ("Still have pending actions" )
123
124
124
125
def assertSamePath (self , path1 , path2 ):
Original file line number Diff line number Diff line change 1
1
# /*##########################################################################
2
2
#
3
- # Copyright (c) 2016-2022 European Synchrotron Radiation Facility
3
+ # Copyright (c) 2016-2024 European Synchrotron Radiation Facility
4
4
#
5
5
# Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
# of this software and associated documentation files (the "Software"), to deal
@@ -122,10 +122,11 @@ def _deleteDialog(self):
122
122
self .qWaitForDestroy (ref )
123
123
124
124
def qWaitForPendingActions (self , dialog ):
125
+ self .qapp .processEvents ()
125
126
for _ in range (20 ):
126
127
if not dialog .hasPendingEvents ():
127
128
return
128
- self .qWait (10 )
129
+ self .qWait (100 )
129
130
raise RuntimeError ("Still have pending actions" )
130
131
131
132
def assertSamePath (self , path1 , path2 ):
You can’t perform that action at this time.
0 commit comments