Show/hide Render View should not raise temp user preferences windows

This commit is contained in:
Sv. Lockal 2013-02-10 18:08:51 +00:00
parent 14a0ff90bc
commit ba12c5eaeb

@ -289,7 +289,9 @@ static int render_view_show_invoke(bContext *C, wmOperator *UNUSED(op), wmEvent
/* is there another window showing result? */
for (win = CTX_wm_manager(C)->windows.first; win; win = win->next) {
if (win->screen->temp || (win == winshow && winshow != wincur)) {
bScreen *sc = win->screen;
if ((sc->temp && ((ScrArea *)sc->areabase.first)->spacetype == SPACE_IMAGE) ||
(win == winshow && winshow != wincur)) {
wm_window_raise(win);
return OPERATOR_FINISHED;
}