Skip to content

Commit

Permalink
apply to each line - with snippet - fix
Browse files Browse the repository at this point in the history
  • Loading branch information
psemiletov committed Jun 11, 2018
1 parent 494d7e6 commit ed6cb47
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rvln.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3104,8 +3104,7 @@ void rvln::view_preview_in_bro()
if (! d)
return;

QString cm ("file:///");
cm.append (d->file_name);
QString cm = "file:///" + d->file_name;
QDesktopServices::openUrl (cm);
}

Expand Down Expand Up @@ -3349,9 +3348,9 @@ void rvln::fn_apply_to_each_line()
{
QString fname = dir_snippets + QDir::separator() + t;

if (file_exists (fname))
if (! file_exists (fname))
{
log->log (tr("snippet %1 is not exists").arg (fname));
log->log (tr ("snippet %1 is not exists").arg (fname));
return;
}

Expand Down

0 comments on commit ed6cb47

Please sign in to comment.