From: Devan Lai Date: Fri, 19 Apr 2019 05:15:19 +0000 (-0700) Subject: Remove redundant isNull() check - isEmpty is a superset of isNull X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b4cc75e003539455fc861046902c7d3757b6ed0e;p=pulseview.git Remove redundant isNull() check - isEmpty is a superset of isNull --- diff --git a/pv/session.cpp b/pv/session.cpp index 91e39756..e412f501 100644 --- a/pv/session.cpp +++ b/pv/session.cpp @@ -588,7 +588,7 @@ void Session::load_file(QString file_name, } // Default the setup filename with a .pvs extension if none is provided - if (setup_file_name.isEmpty() || setup_file_name.isNull()) { + if (setup_file_name.isEmpty()) { setup_file_name = file_name; setup_file_name.truncate(setup_file_name.lastIndexOf('.')); setup_file_name.append(".pvs");