Changeset View
Changeset View
Standalone View
Standalone View
shell/okular_main.cpp
Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Line(s) | 123 | { | |||
---|---|---|---|---|---|
144 | 144 | | |||
145 | if (!ShellUtils::page(serializedOptions).isEmpty() && paths.count() > 1) | 145 | if (!ShellUtils::page(serializedOptions).isEmpty() && paths.count() > 1) | ||
146 | { | 146 | { | ||
147 | QTextStream stream(stderr); | 147 | QTextStream stream(stderr); | ||
148 | stream << i18n( "Error: Can't open more than one document with the --page switch" ) << endl; | 148 | stream << i18n( "Error: Can't open more than one document with the --page switch" ) << endl; | ||
149 | return Error; | 149 | return Error; | ||
150 | } | 150 | } | ||
151 | 151 | | |||
152 | if(!ShellUtils::find(serializedOptions).isEmpty() && paths.count() > 1) | ||||
153 | { | ||||
154 | QTextStream stream(stderr); | ||||
155 | stream << i18n( "Error: Can't open more than one document with the --find switch" ) << endl; | ||||
156 | return Error; | ||||
157 | } | ||||
152 | // try to attach to existing session, unique or not | 158 | // try to attach to existing session, unique or not | ||
153 | if (attachUniqueInstance(paths, serializedOptions) || attachExistingInstance(paths, serializedOptions)) | 159 | if (attachUniqueInstance(paths, serializedOptions) || attachExistingInstance(paths, serializedOptions)) | ||
154 | { | 160 | { | ||
155 | return AttachedOtherProcess; | 161 | return AttachedOtherProcess; | ||
156 | } | 162 | } | ||
157 | 163 | | |||
158 | Shell* shell = new Shell( serializedOptions ); | 164 | Shell* shell = new Shell( serializedOptions ); | ||
159 | if ( !shell->isValid() ) | 165 | if ( !shell->isValid() ) | ||
Show All 31 Lines |