mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 18:50:44 +00:00
More on that last commit
This commit is contained in:
parent
959e5e5d13
commit
a5b28c1fdc
@ -335,6 +335,8 @@ bool Machine::unlinkDay(Day * d)
|
||||
|
||||
bool Machine::unlinkSession(Session * sess)
|
||||
{
|
||||
MachineType mt = sess->type();
|
||||
|
||||
// Remove the object from the machine object's session list
|
||||
bool b=sessionlist.remove(sess->session());
|
||||
|
||||
@ -358,6 +360,10 @@ bool Machine::unlinkSession(Session * sess)
|
||||
d = days.at(i);
|
||||
if (d->sessions.removeAll(sess)) {
|
||||
b=true;
|
||||
if (!d->searchMachine(mt)) {
|
||||
d->machines.remove(mt);
|
||||
}
|
||||
|
||||
if (d->size() == 0) {
|
||||
day.remove(dates[i]);
|
||||
p_profile->unlinkDay(d);
|
||||
|
@ -9,7 +9,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>809</width>
|
||||
<width>824</width>
|
||||
<height>610</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -51,7 +51,7 @@
|
||||
<item>
|
||||
<widget class="QTabWidget" name="tabWidget">
|
||||
<property name="currentIndex">
|
||||
<number>6</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="importTab">
|
||||
<attribute name="title">
|
||||
|
Loading…
Reference in New Issue
Block a user