Browse Source

CommandLineOperation counter was not incremented for file URLs

Caused by 568b26e931 (Bug 857: Allow starting the application (opening the main window) without starting any session + Opening the main window before opening the initial Login dialog)

Source commit: f1d356e9756a47c1462ba4674618fd07c6b9fcd3
Martin Prikryl 9 years ago
parent
commit
00275f943e
1 changed files with 2 additions and 3 deletions
  1. 2 3
      source/windows/WinMain.cpp

+ 2 - 3
source/windows/WinMain.cpp

@@ -992,8 +992,7 @@ int __fastcall Execute()
       // from now flash message boxes on background
       SetOnForeground(false);
 
-      bool CommandLineOperation = (ParamCommand != pcNone) || !DownloadFile.IsEmpty();
-      bool NeedSession = CommandLineOperation;
+      bool NeedSession = (ParamCommand != pcNone);
 
       bool Retry;
       do
@@ -1056,7 +1055,7 @@ int __fastcall Execute()
                   // moved inside try .. __finally, because it can fail as well
                   TerminalManager->ScpExplorer = ScpExplorer;
 
-                  if (CommandLineOperation)
+                  if ((ParamCommand != pcNone) || !DownloadFile.IsEmpty())
                   {
                     Configuration->Usage->Inc(L"CommandLineOperation");
                   }