~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to libs/flake/commands/KoConnectionShapeTypeCommand.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
    setText(i18n("Change Connection"));
32
32
 
33
 
    m_oldType = m_connection->connectionType();
 
33
    m_oldType = m_connection->type();
34
34
}
35
35
 
36
36
void KoConnectionShapeTypeCommand::redo()
40
40
    m_connection->update();
41
41
 
42
42
    if (m_oldType != m_newType)
43
 
        m_connection->setConnectionType(m_newType);
 
43
        m_connection->setType(m_newType);
44
44
 
45
45
    m_connection->update();
46
46
}
52
52
    m_connection->update();
53
53
 
54
54
    if (m_oldType != m_newType)
55
 
        m_connection->setConnectionType(m_oldType);
 
55
        m_connection->setType(m_oldType);
56
56
 
57
57
    m_connection->update();
58
58
}