Changeset 2931 for libpipi/trunk


Ignore:
Timestamp:
Oct 12, 2008, 4:03:19 PM (12 years ago)
Author:
Sam Hocevar
Message:

ThePimp?: do not attempt to save a file if there is no open image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/ThePimp/MainWindow.cs

    r2926 r2931  
    5151
    5252            while(notebook1.NPages > 0)
    53                     notebook1.RemovePage(0);
     53                notebook1.RemovePage(0);
    5454            int n = notebook1.AppendPage(new PictureView(p),
    5555                                         new Label(p.FileName));
     
    8787        protected virtual void OnSaveAsActionActivated (object sender, System.EventArgs e)
    8888        {
     89            if(notebook1.NPages <= 0)
     90                return;
    8991            SaveFile save = new SaveFile();
    9092            PictureView view = notebook1.CurrentPageWidget as PictureView;
Note: See TracChangeset for help on using the changeset viewer.