The logic in this method would be cleaner by skipping the if else, something like this:

```
file_filter = '*.ogg or *.mpg or *.mpeg'
if any field has text in it:
    file_filter = self.search_video()  # Note that a more descriptive name would be something like self.get_video_filter()
file_name = QtGui.QFileDialog.getOpenFileName(self, 'Open File', self.config.videodir, file_filter)
self.path_edit.setText(file_name)
```