Skip to content

Commit 2d09210

Browse files
committed
penPen after save button event
1 parent bdbe876 commit 2d09210

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/tools/save-load.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ void setupSaveLoad(){
6767
pthread_create(&ptid, NULL, &save_all, NULL);
6868
floatingWidget->show();
6969
setHideMainWindow(false);
70+
drawing->setPen(PEN);
7071
});
7172
set_shortcut(toolButtons[SAVE], Qt::Key_S, Qt::ControlModifier);
7273

@@ -83,6 +84,7 @@ void setupSaveLoad(){
8384
openFile(filename);
8485
floatingWidget->show();
8586
setHideMainWindow(false);
87+
drawing->setPen(PEN);
8688
});
8789
set_shortcut(toolButtons[OPEN], Qt::Key_O, Qt::ControlModifier);
8890
#endif

src/widgets/DrawingWidget.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,9 @@ void DrawingWidget::goNext(){
491491

492492
void DrawingWidget::setPen(int type){
493493
penType = type;
494+
if(type != SELECTION){
495+
cropWidget->hide();
496+
}
494497
}
495498

496499
int DrawingWidget::getPen(){

0 commit comments

Comments
 (0)