Skip to content

Commit

Permalink
gui: avoid a win32 ui bug
Browse files Browse the repository at this point in the history
Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information
davvid committed Jun 13, 2008
1 parent f6d08fd commit 38cff66
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cola/controllers/__init__.py
Expand Up @@ -2,6 +2,7 @@
import os
import sys
import time
import platform

from PyQt4 import QtCore
from PyQt4 import QtGui
Expand Down Expand Up @@ -192,12 +193,13 @@ def init(self, model, view):
'global_cola_fontui',
)
self.start_inotify_thread()

def setwindow(self, dock, isfloating):
if isfloating:
flags = ( QtCore.Qt.Window
| QtCore.Qt.FramelessWindowHint )
dock.setWindowFlags( flags )
if platform.system() != 'Windows':
flags = ( QtCore.Qt.Window
| QtCore.Qt.FramelessWindowHint )
dock.setWindowFlags( flags )
dock.show()

#####################################################################
Expand Down

0 comments on commit 38cff66

Please sign in to comment.