Kaydet (Commit) b10e4e5c authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS gh6 (1.4.162); FILE MERGED

2004/05/06 10:01:54 gh 1.4.162.3: #116440#make automatically started scripts more unattended
2004/05/05 15:53:50 gh 1.4.162.2: #i26967#show filename in 'not found' dialog
2004/05/05 15:35:56 gh 1.4.162.1: #i26967#show filename in 'not found' dialog
üst 6431d63c
......@@ -2,9 +2,9 @@
*
* $RCSfile: appwin.cxx,v $
*
* $Revision: 1.4 $
* $Revision: 1.5 $
*
* last change: $Author: gh $ $Date: 2002-03-20 09:05:56 $
* last change: $Author: rt $ $Date: 2004-06-17 11:45:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -479,7 +479,7 @@ void AppWin::Reload()
// Datei laden
void AppWin::Load( const String& aName )
BOOL AppWin::Load( const String& aName )
{
SkipReload();
BOOL bErr;
......@@ -488,7 +488,22 @@ void AppWin::Load( const String& aName )
// return;
bErr = !pDataEdit->Load( aName );
if( bErr )
ErrorBox( this, ResId( IDS_READERROR ) ).Execute();
{
ErrorBox aBox( this, ResId( IDS_READERROR ) );
String aMsg = aBox.GetMessText();
aMsg.AppendAscii("\n\"");
aMsg.Append( aName );
aMsg.AppendAscii("\"");
if ( pFrame->IsAutoRun() )
{
printf( "%s\n", ByteString( aMsg, osl_getThreadTextEncoding() ).GetBuffer() );
}
else
{
aBox.SetMessText( aMsg );
aBox.Execute();
}
}
else
{
DirEntry aEntry( aName );
......@@ -499,6 +514,7 @@ void AppWin::Load( const String& aName )
bHasFile = TRUE;
}
SkipReload( FALSE );
return !bErr;
}
// Datei speichern
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment