Author: mir3x Date: Mon Dec 29 17:44:00 2014 New Revision: 27444 URL: http://svn.gna.org/viewcvs/freeciv?rev=27444&view=rev Log: Fixed notification widget being sometimes over unit info widget.
See patch #5601 Modified: trunk/client/gui-qt/mapview.cpp Modified: trunk/client/gui-qt/mapview.cpp URL: http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/mapview.cpp?rev=27444&r1=27443&r2=27444&view=diff ============================================================================== --- trunk/client/gui-qt/mapview.cpp (original) +++ trunk/client/gui-qt/mapview.cpp Mon Dec 29 17:44:00 2014 @@ -232,13 +232,15 @@ * try position pos_x, pos_y, * check middle and borders if aren't above other widget */ + for (i = 0; i < widgets.count(); i++) { - if (widgets[i]->was_destroyed == true) { + if (widgets[i]->isVisible() == false) { continue; } x = widgets[i]->pos().x(); y = widgets[i]->pos().y(); - if (x == 0 && y ==0) { + + if (x == 0 && y ==0) { continue; } xe = widgets[i]->pos().x() + widgets[i]->width(); _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits