perf scripts python: exported-sql-viewer.py: Remove no selection error
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 22 Feb 2019 07:27:27 +0000 (09:27 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 22 Feb 2019 19:52:07 +0000 (16:52 -0300)
If no selection is made on the 'Selected branches' dialog, then the
output is the same as the 'All branches' report. That is not really an
error, and is not desirable for future reports, so remove it.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/exported-sql-viewer.py

index e1c2f9e54238d2efc0976f2a1379e5a29e1a1d2d..728200e3a691219c8cea014364343729afaea4c2 100755 (executable)
@@ -1808,9 +1808,6 @@ class ReportDialogBase(QDialog):
                                vars.where_clause = " AND ( " + vars.where_clause + " ) "
                        else:
                                vars.where_clause = " WHERE " + vars.where_clause + " "
-               else:
-                       self.ShowMessage("No selection")
-                       return
                self.accept()
 
        def ShowMessage(self, msg):