[Geesas-Devs] SF.net SVN: geesas:[10] pencilanimation/src/interface/editor.cpp
Status: Abandoned
Brought to you by:
creek23
From: <cr...@us...> - 2009-02-07 22:11:32
|
Revision: 10 http://geesas.svn.sourceforge.net/geesas/?rev=10&view=rev Author: creek23 Date: 2009-02-07 22:11:30 +0000 (Sat, 07 Feb 2009) Log Message: ----------- auto-updates TimeLine length. Modified Paths: -------------- pencilanimation/src/interface/editor.cpp Modified: pencilanimation/src/interface/editor.cpp =================================================================== --- pencilanimation/src/interface/editor.cpp 2009-02-07 22:09:23 UTC (rev 9) +++ pencilanimation/src/interface/editor.cpp 2009-02-07 22:11:30 UTC (rev 10) @@ -247,6 +247,8 @@ if(!ok) { QMessageBox::warning(this, "Warning", "Pencil cannot read this file. If you want to import images, use the command import."); newObject(); + } else { + updateMaxFrame(); } } } @@ -259,6 +261,8 @@ if(!ok) { QMessageBox::warning(this, "Warning", "Pencil cannot read this file. If you want to import images, use the command import."); newObject(); + } else { + updateMaxFrame(); } } @@ -908,6 +912,8 @@ scribbleArea->resetColours(); palette->selectColour(0); scribbleArea->updateAllFrames(); + updateMaxFrame(); + timeLine->forceUpdateLength(QString::number(maxFrame)); } bool Editor::openObject(QString filePath) { @@ -1456,7 +1462,6 @@ frameNumber++; addKey(); // is this necessary? updateMaxFrame(); - timeLine->addedFrame(QString::number(maxFrame)); } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |