mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 02:16:14 +02:00
Converter: show an error message if user tries to open a .dproj file. Inspired by issue #19793
git-svn-id: trunk@31879 -
This commit is contained in:
parent
f9a84e9f2f
commit
c56a916203
@ -768,6 +768,11 @@ var
|
||||
// The initial unit name cache is done in a thread so that GUI shows at once.
|
||||
CacheUnitsThread: TCacheUnitsThread;
|
||||
begin
|
||||
if CompareFileExt(fOrigPFilename,'.dproj',false)=0 then begin
|
||||
ShowMessage('.dproj file is not supported yet. The file is used by Delphi 2007 and newer.'+
|
||||
' Please select a .dpr file for projects or .dpk file for packages.');
|
||||
Exit(mrCancel);
|
||||
end;
|
||||
IDEMessagesWindow.Clear;
|
||||
// Start scanning unit files one level above project path. The GUI will appear
|
||||
// without delay but then we must wait for the thread before continuing.
|
||||
|
Loading…
Reference in New Issue
Block a user