198 self.__setHtml(fn, self.tr( |
198 self.__setHtml(fn, self.tr( |
199 "<p>No preview available for this type of file.</p>")) |
199 "<p>No preview available for this type of file.</p>")) |
200 return |
200 return |
201 |
201 |
202 if fn: |
202 if fn: |
203 project = ericApp().getObject("Project") |
203 rootPath = os.path.dirname(os.path.abspath(fn)) |
204 if project.isProjectFile(fn): |
|
205 rootPath = project.getProjectPath() |
|
206 else: |
|
207 rootPath = os.path.dirname(os.path.abspath(fn)) |
|
208 else: |
204 else: |
209 rootPath = "" |
205 rootPath = "" |
210 |
206 |
211 if bool(editor.text()): |
207 if bool(editor.text()): |
212 self.__processingThread.process( |
208 self.__processingThread.process( |