Skip to content

Commit

Permalink
Added support for opening multiple bag files at once (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjseabright authored and dirk-thomas committed Mar 21, 2018
1 parent c0d583b commit 7a670d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rqt_bag/src/rqt_bag/bag_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ def _on_record_settings_selected(self, all_topics, selected_topics):


def _handle_load_clicked(self):
filename = QFileDialog.getOpenFileName(self, self.tr('Load from File'), '.', self.tr('Bag files {.bag} (*.bag)'))
if filename[0] != '':
self.load_bag(filename[0])
filenames = QFileDialog.getOpenFileNames(self, self.tr('Load from Files'), '.', self.tr('Bag files {.bag} (*.bag)'))
for filename in filenames[0]:
self.load_bag(filename)

def load_bag(self, filename):
qDebug("Loading '%s'..." % filename)
Expand Down

0 comments on commit 7a670d6

Please sign in to comment.